@zwave-js/cc 15.1.1 → 15.1.2
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 +7 -7
- package/build/cjs/cc/AlarmSensorCC.js +22 -23
- package/build/cjs/cc/AlarmSensorCC.js.map +3 -3
- package/build/cjs/cc/AssociationCC.d.ts +8 -9
- package/build/cjs/cc/AssociationCC.js +29 -29
- package/build/cjs/cc/AssociationCC.js.map +3 -3
- package/build/cjs/cc/AssociationGroupInfoCC.d.ts +7 -7
- package/build/cjs/cc/AssociationGroupInfoCC.js +31 -32
- package/build/cjs/cc/AssociationGroupInfoCC.js.map +3 -3
- package/build/cjs/cc/BarrierOperatorCC.d.ts +8 -8
- package/build/cjs/cc/BarrierOperatorCC.js +35 -36
- package/build/cjs/cc/BarrierOperatorCC.js.map +3 -3
- package/build/cjs/cc/BasicCC.d.ts +4 -4
- package/build/cjs/cc/BasicCC.js +23 -24
- package/build/cjs/cc/BasicCC.js.map +3 -3
- package/build/cjs/cc/BatteryCC.d.ts +4 -7
- package/build/cjs/cc/BatteryCC.js +18 -20
- package/build/cjs/cc/BatteryCC.js.map +3 -3
- package/build/cjs/cc/BinarySensorCC.d.ts +5 -5
- package/build/cjs/cc/BinarySensorCC.js +20 -21
- package/build/cjs/cc/BinarySensorCC.js.map +3 -3
- package/build/cjs/cc/BinarySwitchCC._validateArgs.js +2 -2
- package/build/cjs/cc/BinarySwitchCC.d.ts +6 -6
- package/build/cjs/cc/BinarySwitchCC.js +26 -26
- package/build/cjs/cc/BinarySwitchCC.js.map +3 -3
- package/build/cjs/cc/CRC16CC.d.ts +3 -3
- package/build/cjs/cc/CRC16CC.js +15 -15
- package/build/cjs/cc/CRC16CC.js.map +3 -3
- package/build/cjs/cc/CentralSceneCC.d.ts +8 -8
- package/build/cjs/cc/CentralSceneCC.js +23 -24
- package/build/cjs/cc/CentralSceneCC.js.map +3 -3
- package/build/cjs/cc/ClimateControlScheduleCC.d.ts +6 -6
- package/build/cjs/cc/ClimateControlScheduleCC.js +19 -20
- package/build/cjs/cc/ClimateControlScheduleCC.js.map +3 -3
- package/build/cjs/cc/ClockCC.d.ts +3 -4
- package/build/cjs/cc/ClockCC.js +13 -14
- package/build/cjs/cc/ClockCC.js.map +3 -3
- package/build/cjs/cc/ColorSwitchCC.d.ts +3 -4
- package/build/cjs/cc/ColorSwitchCC.js +22 -24
- package/build/cjs/cc/ColorSwitchCC.js.map +3 -3
- package/build/cjs/cc/ConfigurationCC.d.ts +3 -3
- package/build/cjs/cc/ConfigurationCC.js +114 -115
- package/build/cjs/cc/ConfigurationCC.js.map +3 -3
- package/build/cjs/cc/DeviceResetLocallyCC.d.ts +2 -2
- package/build/cjs/cc/DeviceResetLocallyCC.js +5 -5
- package/build/cjs/cc/DeviceResetLocallyCC.js.map +1 -1
- package/build/cjs/cc/DoorLockCC.d.ts +29 -29
- package/build/cjs/cc/DoorLockCC.js +39 -40
- package/build/cjs/cc/DoorLockCC.js.map +3 -3
- package/build/cjs/cc/DoorLockLoggingCC.d.ts +4 -4
- package/build/cjs/cc/DoorLockLoggingCC.js +13 -14
- package/build/cjs/cc/DoorLockLoggingCC.js.map +3 -3
- package/build/cjs/cc/EnergyProductionCC.d.ts +2 -3
- package/build/cjs/cc/EnergyProductionCC.js.map +2 -2
- package/build/cjs/cc/EntryControlCC.d.ts +8 -8
- package/build/cjs/cc/EntryControlCC.js +41 -42
- package/build/cjs/cc/EntryControlCC.js.map +3 -3
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.d.ts +9 -10
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +52 -53
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +3 -3
- package/build/cjs/cc/HailCC.js +2 -2
- package/build/cjs/cc/HailCC.js.map +1 -1
- package/build/cjs/cc/HumidityControlModeCC.d.ts +5 -5
- package/build/cjs/cc/HumidityControlModeCC.js +20 -21
- package/build/cjs/cc/HumidityControlModeCC.js.map +3 -3
- package/build/cjs/cc/HumidityControlOperatingStateCC.d.ts +3 -3
- package/build/cjs/cc/HumidityControlOperatingStateCC.js +9 -9
- package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +3 -3
- package/build/cjs/cc/HumidityControlSetpointCC.d.ts +6 -6
- package/build/cjs/cc/HumidityControlSetpointCC.js +43 -44
- package/build/cjs/cc/HumidityControlSetpointCC.js.map +3 -3
- package/build/cjs/cc/InclusionControllerCC.d.ts +2 -3
- package/build/cjs/cc/InclusionControllerCC.js.map +2 -2
- package/build/cjs/cc/IndicatorCC.d.ts +3 -3
- package/build/cjs/cc/IndicatorCC.js +50 -52
- package/build/cjs/cc/IndicatorCC.js.map +3 -3
- package/build/cjs/cc/IrrigationCC.d.ts +3 -3
- package/build/cjs/cc/IrrigationCC.js +74 -75
- package/build/cjs/cc/IrrigationCC.js.map +3 -3
- package/build/cjs/cc/LanguageCC.d.ts +5 -6
- package/build/cjs/cc/LanguageCC.js +14 -15
- package/build/cjs/cc/LanguageCC.js.map +3 -3
- package/build/cjs/cc/LockCC.d.ts +4 -4
- package/build/cjs/cc/LockCC.js +10 -10
- package/build/cjs/cc/LockCC.js.map +3 -3
- package/build/cjs/cc/ManufacturerProprietaryCC.d.ts +3 -3
- package/build/cjs/cc/ManufacturerProprietaryCC.js +10 -10
- package/build/cjs/cc/ManufacturerProprietaryCC.js.map +3 -3
- package/build/cjs/cc/ManufacturerSpecificCC.d.ts +7 -8
- package/build/cjs/cc/ManufacturerSpecificCC.js +20 -21
- package/build/cjs/cc/ManufacturerSpecificCC.js.map +3 -3
- package/build/cjs/cc/MeterCC.d.ts +4 -6
- package/build/cjs/cc/MeterCC.js +52 -54
- package/build/cjs/cc/MeterCC.js.map +3 -3
- package/build/cjs/cc/MultiChannelAssociationCC.d.ts +7 -8
- package/build/cjs/cc/MultiChannelAssociationCC.js +34 -35
- package/build/cjs/cc/MultiChannelAssociationCC.js.map +3 -3
- package/build/cjs/cc/MultiChannelCC.d.ts +11 -11
- package/build/cjs/cc/MultiChannelCC.js +53 -53
- package/build/cjs/cc/MultiChannelCC.js.map +3 -3
- package/build/cjs/cc/MultiCommandCC.d.ts +3 -3
- package/build/cjs/cc/MultiCommandCC.js +13 -13
- package/build/cjs/cc/MultiCommandCC.js.map +3 -3
- package/build/cjs/cc/MultilevelSensorCC.d.ts +4 -7
- package/build/cjs/cc/MultilevelSensorCC.js +26 -28
- package/build/cjs/cc/MultilevelSensorCC.js.map +3 -3
- package/build/cjs/cc/MultilevelSwitchCC._validateArgs.js +3 -3
- package/build/cjs/cc/MultilevelSwitchCC.d.ts +13 -13
- package/build/cjs/cc/MultilevelSwitchCC.js +36 -37
- package/build/cjs/cc/MultilevelSwitchCC.js.map +3 -3
- package/build/cjs/cc/NoOperationCC.js +4 -4
- package/build/cjs/cc/NoOperationCC.js.map +1 -1
- package/build/cjs/cc/NodeNamingCC.d.ts +5 -5
- package/build/cjs/cc/NodeNamingCC.js +20 -20
- package/build/cjs/cc/NodeNamingCC.js.map +3 -3
- package/build/cjs/cc/NotificationCC.d.ts +4 -5
- package/build/cjs/cc/NotificationCC.js +66 -68
- package/build/cjs/cc/NotificationCC.js.map +3 -3
- package/build/cjs/cc/PowerlevelCC.d.ts +3 -3
- package/build/cjs/cc/PowerlevelCC.js +25 -26
- package/build/cjs/cc/PowerlevelCC.js.map +3 -3
- package/build/cjs/cc/ProtectionCC._validateArgs.js +2 -2
- package/build/cjs/cc/ProtectionCC.d.ts +11 -11
- package/build/cjs/cc/ProtectionCC.js +35 -36
- package/build/cjs/cc/ProtectionCC.js.map +3 -3
- package/build/cjs/cc/SceneActivationCC._validateArgs.js +2 -2
- package/build/cjs/cc/SceneActivationCC.d.ts +5 -6
- package/build/cjs/cc/SceneActivationCC.js +10 -10
- package/build/cjs/cc/SceneActivationCC.js.map +3 -3
- package/build/cjs/cc/SceneActuatorConfigurationCC._validateArgs.js +2 -2
- package/build/cjs/cc/SceneActuatorConfigurationCC.d.ts +5 -5
- package/build/cjs/cc/SceneActuatorConfigurationCC.js +19 -20
- package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +3 -3
- package/build/cjs/cc/SceneControllerConfigurationCC._validateArgs.js +2 -2
- package/build/cjs/cc/SceneControllerConfigurationCC.d.ts +6 -6
- package/build/cjs/cc/SceneControllerConfigurationCC.js +25 -26
- package/build/cjs/cc/SceneControllerConfigurationCC.js.map +3 -3
- package/build/cjs/cc/ScheduleEntryLockCC.d.ts +2 -3
- package/build/cjs/cc/ScheduleEntryLockCC.js.map +2 -2
- package/build/cjs/cc/Security2CC.d.ts +3 -4
- package/build/cjs/cc/Security2CC.js +60 -62
- package/build/cjs/cc/Security2CC.js.map +3 -3
- package/build/cjs/cc/SecurityCC.d.ts +3 -4
- package/build/cjs/cc/SecurityCC.js +25 -26
- package/build/cjs/cc/SecurityCC.js.map +3 -3
- package/build/cjs/cc/SoundSwitchCC.d.ts +7 -7
- package/build/cjs/cc/SoundSwitchCC.js +28 -29
- package/build/cjs/cc/SoundSwitchCC.js.map +3 -3
- package/build/cjs/cc/SupervisionCC.d.ts +4 -4
- package/build/cjs/cc/SupervisionCC.js +28 -29
- package/build/cjs/cc/SupervisionCC.js.map +3 -3
- package/build/cjs/cc/ThermostatFanModeCC.d.ts +6 -6
- package/build/cjs/cc/ThermostatFanModeCC.js +21 -22
- package/build/cjs/cc/ThermostatFanModeCC.js.map +3 -3
- package/build/cjs/cc/ThermostatFanStateCC.d.ts +3 -3
- package/build/cjs/cc/ThermostatFanStateCC.js +9 -9
- package/build/cjs/cc/ThermostatFanStateCC.js.map +3 -3
- package/build/cjs/cc/ThermostatModeCC.d.ts +6 -6
- package/build/cjs/cc/ThermostatModeCC.js +30 -31
- package/build/cjs/cc/ThermostatModeCC.js.map +3 -3
- package/build/cjs/cc/ThermostatOperatingStateCC.d.ts +3 -4
- package/build/cjs/cc/ThermostatOperatingStateCC.js +9 -9
- package/build/cjs/cc/ThermostatOperatingStateCC.js.map +3 -3
- package/build/cjs/cc/ThermostatSetbackCC.d.ts +3 -3
- package/build/cjs/cc/ThermostatSetbackCC.js +14 -15
- package/build/cjs/cc/ThermostatSetbackCC.js.map +3 -3
- package/build/cjs/cc/ThermostatSetpointCC.d.ts +6 -6
- package/build/cjs/cc/ThermostatSetpointCC.js +48 -49
- package/build/cjs/cc/ThermostatSetpointCC.js.map +3 -3
- package/build/cjs/cc/TimeCC.d.ts +3 -4
- package/build/cjs/cc/TimeCC.js +9 -10
- package/build/cjs/cc/TimeCC.js.map +3 -3
- package/build/cjs/cc/TimeParametersCC.d.ts +3 -4
- package/build/cjs/cc/TimeParametersCC.js +2 -2
- package/build/cjs/cc/TimeParametersCC.js.map +2 -2
- package/build/cjs/cc/TransportServiceCC.d.ts +3 -3
- package/build/cjs/cc/TransportServiceCC.js +44 -45
- package/build/cjs/cc/TransportServiceCC.js.map +3 -3
- package/build/cjs/cc/UserCodeCC.d.ts +19 -19
- package/build/cjs/cc/UserCodeCC.js +102 -103
- package/build/cjs/cc/UserCodeCC.js.map +3 -3
- package/build/cjs/cc/VersionCC.d.ts +17 -17
- package/build/cjs/cc/VersionCC.js +46 -47
- package/build/cjs/cc/VersionCC.js.map +3 -3
- package/build/cjs/cc/WakeUpCC.d.ts +6 -6
- package/build/cjs/cc/WakeUpCC.js +16 -17
- package/build/cjs/cc/WakeUpCC.js.map +3 -3
- package/build/cjs/cc/WindowCoveringCC.d.ts +3 -4
- package/build/cjs/cc/WindowCoveringCC.js +17 -18
- package/build/cjs/cc/WindowCoveringCC.js.map +3 -3
- package/build/cjs/cc/ZWavePlusCC.d.ts +8 -8
- package/build/cjs/cc/ZWavePlusCC.js +15 -16
- package/build/cjs/cc/ZWavePlusCC.js.map +3 -3
- package/build/cjs/cc/ZWaveProtocolCC.d.ts +2 -2
- package/build/cjs/cc/ZWaveProtocolCC.js +35 -35
- package/build/cjs/cc/ZWaveProtocolCC.js.map +2 -2
- package/build/cjs/cc/_CCValues.generated.js +24 -26
- package/build/cjs/cc/_CCValues.generated.js.map +3 -3
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.d.ts +3 -3
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js +14 -14
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
- package/build/cjs/lib/API.d.ts +3 -3
- package/build/cjs/lib/API.js.map +2 -2
- package/build/cjs/lib/CommandClass.d.ts +5 -6
- package/build/cjs/lib/CommandClass.js +45 -45
- package/build/cjs/lib/CommandClass.js.map +3 -3
- package/build/cjs/lib/CommandClassDecorators.d.ts +2 -2
- package/build/cjs/lib/CommandClassDecorators.js +3 -3
- package/build/cjs/lib/CommandClassDecorators.js.map +2 -2
- package/build/cjs/lib/Security2/Extension.d.ts +2 -2
- package/build/cjs/lib/Security2/Extension.js +17 -17
- package/build/cjs/lib/Security2/Extension.js.map +3 -3
- package/build/cjs/lib/SetValueResult.d.ts +1 -1
- package/build/cjs/lib/SetValueResult.js.map +1 -1
- package/build/cjs/lib/Values.d.ts +3 -3
- package/build/cjs/lib/Values.js +6 -6
- package/build/cjs/lib/Values.js.map +2 -2
- package/build/cjs/lib/_Types.d.ts +2 -2
- package/build/cjs/lib/_Types.js +3 -3
- package/build/cjs/lib/_Types.js.map +1 -1
- package/build/cjs/lib/serializers.d.ts +1 -1
- package/build/cjs/lib/serializers.js +5 -5
- package/build/cjs/lib/serializers.js.map +2 -2
- package/build/cjs/lib/traits.d.ts +2 -2
- package/build/cjs/lib/utils.d.ts +2 -2
- package/build/cjs/lib/utils.js +60 -60
- package/build/cjs/lib/utils.js.map +3 -3
- package/build/esm/cc/AlarmSensorCC.d.ts +7 -7
- package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -1
- package/build/esm/cc/AlarmSensorCC.js +2 -3
- package/build/esm/cc/AlarmSensorCC.js.map +1 -1
- package/build/esm/cc/AssociationCC.d.ts +8 -9
- package/build/esm/cc/AssociationCC.d.ts.map +1 -1
- package/build/esm/cc/AssociationCC.js +2 -2
- package/build/esm/cc/AssociationCC.js.map +1 -1
- package/build/esm/cc/AssociationGroupInfoCC.d.ts +7 -7
- package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -1
- package/build/esm/cc/AssociationGroupInfoCC.js +2 -3
- package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -1
- package/build/esm/cc/BarrierOperatorCC.d.ts +8 -8
- package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -1
- package/build/esm/cc/BarrierOperatorCC.js +2 -3
- package/build/esm/cc/BarrierOperatorCC.js.map +1 -1
- package/build/esm/cc/BasicCC.d.ts +4 -4
- package/build/esm/cc/BasicCC.d.ts.map +1 -1
- package/build/esm/cc/BasicCC.js +2 -3
- package/build/esm/cc/BasicCC.js.map +1 -1
- package/build/esm/cc/BatteryCC.d.ts +4 -7
- package/build/esm/cc/BatteryCC.d.ts.map +1 -1
- package/build/esm/cc/BatteryCC.js +2 -4
- package/build/esm/cc/BatteryCC.js.map +1 -1
- package/build/esm/cc/BinarySensorCC.d.ts +5 -5
- package/build/esm/cc/BinarySensorCC.d.ts.map +1 -1
- package/build/esm/cc/BinarySensorCC.js +2 -3
- package/build/esm/cc/BinarySensorCC.js.map +1 -1
- package/build/esm/cc/BinarySwitchCC._validateArgs.js +1 -1
- package/build/esm/cc/BinarySwitchCC._validateArgs.js.map +1 -1
- package/build/esm/cc/BinarySwitchCC.d.ts +6 -6
- package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -1
- package/build/esm/cc/BinarySwitchCC.js +2 -2
- package/build/esm/cc/BinarySwitchCC.js.map +1 -1
- package/build/esm/cc/CRC16CC.d.ts +3 -3
- package/build/esm/cc/CRC16CC.d.ts.map +1 -1
- package/build/esm/cc/CRC16CC.js +2 -2
- package/build/esm/cc/CRC16CC.js.map +1 -1
- package/build/esm/cc/CentralSceneCC.d.ts +8 -8
- package/build/esm/cc/CentralSceneCC.d.ts.map +1 -1
- package/build/esm/cc/CentralSceneCC.js +2 -3
- package/build/esm/cc/CentralSceneCC.js.map +1 -1
- package/build/esm/cc/ClimateControlScheduleCC.d.ts +6 -6
- package/build/esm/cc/ClimateControlScheduleCC.d.ts.map +1 -1
- package/build/esm/cc/ClimateControlScheduleCC.js +2 -3
- package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -1
- package/build/esm/cc/ClockCC.d.ts +3 -4
- package/build/esm/cc/ClockCC.d.ts.map +1 -1
- package/build/esm/cc/ClockCC.js +2 -3
- package/build/esm/cc/ClockCC.js.map +1 -1
- package/build/esm/cc/ColorSwitchCC.d.ts +3 -4
- package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/ColorSwitchCC.js +2 -4
- package/build/esm/cc/ColorSwitchCC.js.map +1 -1
- package/build/esm/cc/ConfigurationCC.d.ts +3 -3
- package/build/esm/cc/ConfigurationCC.d.ts.map +1 -1
- package/build/esm/cc/ConfigurationCC.js +2 -3
- package/build/esm/cc/ConfigurationCC.js.map +1 -1
- package/build/esm/cc/DeviceResetLocallyCC.d.ts +2 -2
- package/build/esm/cc/DeviceResetLocallyCC.d.ts.map +1 -1
- package/build/esm/cc/DeviceResetLocallyCC.js +1 -1
- package/build/esm/cc/DeviceResetLocallyCC.js.map +1 -1
- package/build/esm/cc/DoorLockCC.d.ts +29 -29
- package/build/esm/cc/DoorLockCC.d.ts.map +1 -1
- package/build/esm/cc/DoorLockCC.js +2 -3
- package/build/esm/cc/DoorLockCC.js.map +1 -1
- package/build/esm/cc/DoorLockLoggingCC.d.ts +4 -4
- package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -1
- package/build/esm/cc/DoorLockLoggingCC.js +2 -3
- package/build/esm/cc/DoorLockLoggingCC.js.map +1 -1
- package/build/esm/cc/EnergyProductionCC.d.ts +2 -3
- package/build/esm/cc/EnergyProductionCC.d.ts.map +1 -1
- package/build/esm/cc/EnergyProductionCC.js.map +1 -1
- package/build/esm/cc/EntryControlCC.d.ts +8 -8
- package/build/esm/cc/EntryControlCC.d.ts.map +1 -1
- package/build/esm/cc/EntryControlCC.js +2 -3
- package/build/esm/cc/EntryControlCC.js.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts +9 -10
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js +2 -3
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
- package/build/esm/cc/HailCC.js +1 -1
- package/build/esm/cc/HailCC.js.map +1 -1
- package/build/esm/cc/HumidityControlModeCC.d.ts +5 -5
- package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlModeCC.js +2 -3
- package/build/esm/cc/HumidityControlModeCC.js.map +1 -1
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts +3 -3
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlOperatingStateCC.js +2 -2
- package/build/esm/cc/HumidityControlOperatingStateCC.js.map +1 -1
- package/build/esm/cc/HumidityControlSetpointCC.d.ts +6 -6
- package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlSetpointCC.js +2 -3
- package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -1
- package/build/esm/cc/InclusionControllerCC.d.ts +2 -3
- package/build/esm/cc/InclusionControllerCC.d.ts.map +1 -1
- package/build/esm/cc/InclusionControllerCC.js.map +1 -1
- package/build/esm/cc/IndicatorCC.d.ts +3 -3
- package/build/esm/cc/IndicatorCC.d.ts.map +1 -1
- package/build/esm/cc/IndicatorCC.js +2 -4
- package/build/esm/cc/IndicatorCC.js.map +1 -1
- package/build/esm/cc/IrrigationCC.d.ts +3 -3
- package/build/esm/cc/IrrigationCC.d.ts.map +1 -1
- package/build/esm/cc/IrrigationCC.js +2 -3
- package/build/esm/cc/IrrigationCC.js.map +1 -1
- package/build/esm/cc/LanguageCC.d.ts +5 -6
- package/build/esm/cc/LanguageCC.d.ts.map +1 -1
- package/build/esm/cc/LanguageCC.js +2 -3
- package/build/esm/cc/LanguageCC.js.map +1 -1
- package/build/esm/cc/LockCC.d.ts +4 -4
- package/build/esm/cc/LockCC.d.ts.map +1 -1
- package/build/esm/cc/LockCC.js +2 -2
- package/build/esm/cc/LockCC.js.map +1 -1
- package/build/esm/cc/ManufacturerProprietaryCC.d.ts +3 -3
- package/build/esm/cc/ManufacturerProprietaryCC.d.ts.map +1 -1
- package/build/esm/cc/ManufacturerProprietaryCC.js +2 -2
- package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -1
- package/build/esm/cc/ManufacturerSpecificCC.d.ts +7 -8
- package/build/esm/cc/ManufacturerSpecificCC.d.ts.map +1 -1
- package/build/esm/cc/ManufacturerSpecificCC.js +2 -3
- package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -1
- package/build/esm/cc/MeterCC.d.ts +4 -6
- package/build/esm/cc/MeterCC.d.ts.map +1 -1
- package/build/esm/cc/MeterCC.js +2 -4
- package/build/esm/cc/MeterCC.js.map +1 -1
- package/build/esm/cc/MultiChannelAssociationCC.d.ts +7 -8
- package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -1
- package/build/esm/cc/MultiChannelAssociationCC.js +2 -3
- package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -1
- package/build/esm/cc/MultiChannelCC.d.ts +11 -11
- package/build/esm/cc/MultiChannelCC.d.ts.map +1 -1
- package/build/esm/cc/MultiChannelCC.js +2 -2
- package/build/esm/cc/MultiChannelCC.js.map +1 -1
- package/build/esm/cc/MultiCommandCC.d.ts +3 -3
- package/build/esm/cc/MultiCommandCC.d.ts.map +1 -1
- package/build/esm/cc/MultiCommandCC.js +2 -2
- package/build/esm/cc/MultiCommandCC.js.map +1 -1
- package/build/esm/cc/MultilevelSensorCC.d.ts +4 -7
- package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -1
- package/build/esm/cc/MultilevelSensorCC.js +2 -4
- package/build/esm/cc/MultilevelSensorCC.js.map +1 -1
- package/build/esm/cc/MultilevelSwitchCC._validateArgs.js +1 -1
- package/build/esm/cc/MultilevelSwitchCC._validateArgs.js.map +1 -1
- package/build/esm/cc/MultilevelSwitchCC.d.ts +13 -13
- package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/MultilevelSwitchCC.js +2 -3
- package/build/esm/cc/MultilevelSwitchCC.js.map +1 -1
- package/build/esm/cc/NoOperationCC.js +1 -1
- package/build/esm/cc/NoOperationCC.js.map +1 -1
- package/build/esm/cc/NodeNamingCC.d.ts +5 -5
- package/build/esm/cc/NodeNamingCC.d.ts.map +1 -1
- package/build/esm/cc/NodeNamingCC.js +2 -2
- package/build/esm/cc/NodeNamingCC.js.map +1 -1
- package/build/esm/cc/NotificationCC.d.ts +4 -5
- package/build/esm/cc/NotificationCC.d.ts.map +1 -1
- package/build/esm/cc/NotificationCC.js +2 -4
- package/build/esm/cc/NotificationCC.js.map +1 -1
- package/build/esm/cc/PowerlevelCC.d.ts +3 -3
- package/build/esm/cc/PowerlevelCC.d.ts.map +1 -1
- package/build/esm/cc/PowerlevelCC.js +2 -3
- package/build/esm/cc/PowerlevelCC.js.map +1 -1
- package/build/esm/cc/ProtectionCC._validateArgs.js +1 -1
- package/build/esm/cc/ProtectionCC._validateArgs.js.map +1 -1
- package/build/esm/cc/ProtectionCC.d.ts +11 -11
- package/build/esm/cc/ProtectionCC.d.ts.map +1 -1
- package/build/esm/cc/ProtectionCC.js +2 -3
- package/build/esm/cc/ProtectionCC.js.map +1 -1
- package/build/esm/cc/SceneActivationCC._validateArgs.js +1 -1
- package/build/esm/cc/SceneActivationCC._validateArgs.js.map +1 -1
- package/build/esm/cc/SceneActivationCC.d.ts +5 -6
- package/build/esm/cc/SceneActivationCC.d.ts.map +1 -1
- package/build/esm/cc/SceneActivationCC.js +2 -2
- package/build/esm/cc/SceneActivationCC.js.map +1 -1
- package/build/esm/cc/SceneActuatorConfigurationCC._validateArgs.js +1 -1
- package/build/esm/cc/SceneActuatorConfigurationCC._validateArgs.js.map +1 -1
- package/build/esm/cc/SceneActuatorConfigurationCC.d.ts +5 -5
- package/build/esm/cc/SceneActuatorConfigurationCC.d.ts.map +1 -1
- package/build/esm/cc/SceneActuatorConfigurationCC.js +2 -3
- package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -1
- package/build/esm/cc/SceneControllerConfigurationCC._validateArgs.js +1 -1
- package/build/esm/cc/SceneControllerConfigurationCC._validateArgs.js.map +1 -1
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts +6 -6
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts.map +1 -1
- package/build/esm/cc/SceneControllerConfigurationCC.js +2 -3
- package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -1
- package/build/esm/cc/ScheduleEntryLockCC.d.ts +2 -3
- package/build/esm/cc/ScheduleEntryLockCC.d.ts.map +1 -1
- package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -1
- package/build/esm/cc/Security2CC.d.ts +3 -4
- package/build/esm/cc/Security2CC.d.ts.map +1 -1
- package/build/esm/cc/Security2CC.js +2 -4
- package/build/esm/cc/Security2CC.js.map +1 -1
- package/build/esm/cc/SecurityCC.d.ts +3 -4
- package/build/esm/cc/SecurityCC.d.ts.map +1 -1
- package/build/esm/cc/SecurityCC.js +1 -2
- package/build/esm/cc/SecurityCC.js.map +1 -1
- package/build/esm/cc/SoundSwitchCC.d.ts +7 -7
- package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/SoundSwitchCC.js +2 -3
- package/build/esm/cc/SoundSwitchCC.js.map +1 -1
- package/build/esm/cc/SupervisionCC.d.ts +4 -4
- package/build/esm/cc/SupervisionCC.d.ts.map +1 -1
- package/build/esm/cc/SupervisionCC.js +2 -3
- package/build/esm/cc/SupervisionCC.js.map +1 -1
- package/build/esm/cc/ThermostatFanModeCC.d.ts +6 -6
- package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatFanModeCC.js +2 -3
- package/build/esm/cc/ThermostatFanModeCC.js.map +1 -1
- package/build/esm/cc/ThermostatFanStateCC.d.ts +3 -3
- package/build/esm/cc/ThermostatFanStateCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatFanStateCC.js +2 -2
- package/build/esm/cc/ThermostatFanStateCC.js.map +1 -1
- package/build/esm/cc/ThermostatModeCC.d.ts +6 -6
- package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatModeCC.js +2 -3
- package/build/esm/cc/ThermostatModeCC.js.map +1 -1
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts +3 -4
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatOperatingStateCC.js +2 -2
- package/build/esm/cc/ThermostatOperatingStateCC.js.map +1 -1
- package/build/esm/cc/ThermostatSetbackCC.d.ts +3 -3
- package/build/esm/cc/ThermostatSetbackCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatSetbackCC.js +2 -3
- package/build/esm/cc/ThermostatSetbackCC.js.map +1 -1
- package/build/esm/cc/ThermostatSetpointCC.d.ts +6 -6
- package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatSetpointCC.js +2 -3
- package/build/esm/cc/ThermostatSetpointCC.js.map +1 -1
- package/build/esm/cc/TimeCC.d.ts +3 -4
- package/build/esm/cc/TimeCC.d.ts.map +1 -1
- package/build/esm/cc/TimeCC.js +1 -2
- package/build/esm/cc/TimeCC.js.map +1 -1
- package/build/esm/cc/TimeParametersCC.d.ts +3 -4
- package/build/esm/cc/TimeParametersCC.d.ts.map +1 -1
- package/build/esm/cc/TimeParametersCC.js +1 -1
- package/build/esm/cc/TimeParametersCC.js.map +1 -1
- package/build/esm/cc/TransportServiceCC.d.ts +3 -3
- package/build/esm/cc/TransportServiceCC.d.ts.map +1 -1
- package/build/esm/cc/TransportServiceCC.js +2 -3
- package/build/esm/cc/TransportServiceCC.js.map +1 -1
- package/build/esm/cc/UserCodeCC.d.ts +19 -19
- package/build/esm/cc/UserCodeCC.d.ts.map +1 -1
- package/build/esm/cc/UserCodeCC.js +2 -3
- package/build/esm/cc/UserCodeCC.js.map +1 -1
- package/build/esm/cc/VersionCC.d.ts +17 -17
- package/build/esm/cc/VersionCC.d.ts.map +1 -1
- package/build/esm/cc/VersionCC.js +2 -3
- package/build/esm/cc/VersionCC.js.map +1 -1
- package/build/esm/cc/WakeUpCC.d.ts +6 -6
- package/build/esm/cc/WakeUpCC.d.ts.map +1 -1
- package/build/esm/cc/WakeUpCC.js +2 -3
- package/build/esm/cc/WakeUpCC.js.map +1 -1
- package/build/esm/cc/WindowCoveringCC.d.ts +3 -4
- package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -1
- package/build/esm/cc/WindowCoveringCC.js +1 -2
- package/build/esm/cc/WindowCoveringCC.js.map +1 -1
- package/build/esm/cc/ZWavePlusCC.d.ts +8 -8
- package/build/esm/cc/ZWavePlusCC.d.ts.map +1 -1
- package/build/esm/cc/ZWavePlusCC.js +2 -3
- package/build/esm/cc/ZWavePlusCC.js.map +1 -1
- package/build/esm/cc/ZWaveProtocolCC.d.ts +2 -2
- package/build/esm/cc/ZWaveProtocolCC.d.ts.map +1 -1
- package/build/esm/cc/ZWaveProtocolCC.js +1 -1
- package/build/esm/cc/ZWaveProtocolCC.js.map +1 -1
- package/build/esm/cc/_CCValues.generated.d.ts.map +1 -1
- package/build/esm/cc/_CCValues.generated.js +2 -4
- package/build/esm/cc/_CCValues.generated.js.map +1 -1
- package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts +3 -3
- package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts.map +1 -1
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js +1 -1
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
- package/build/esm/lib/API.d.ts +3 -3
- package/build/esm/lib/API.d.ts.map +1 -1
- package/build/esm/lib/API.js.map +1 -1
- package/build/esm/lib/CommandClass.d.ts +5 -6
- package/build/esm/lib/CommandClass.d.ts.map +1 -1
- package/build/esm/lib/CommandClass.js +2 -2
- package/build/esm/lib/CommandClass.js.map +1 -1
- package/build/esm/lib/CommandClassDecorators.d.ts +2 -2
- package/build/esm/lib/CommandClassDecorators.d.ts.map +1 -1
- package/build/esm/lib/CommandClassDecorators.js +1 -1
- package/build/esm/lib/CommandClassDecorators.js.map +1 -1
- package/build/esm/lib/Security2/Extension.d.ts +2 -2
- package/build/esm/lib/Security2/Extension.d.ts.map +1 -1
- package/build/esm/lib/Security2/Extension.js +2 -2
- package/build/esm/lib/Security2/Extension.js.map +1 -1
- package/build/esm/lib/SetValueResult.d.ts +1 -1
- package/build/esm/lib/SetValueResult.d.ts.map +1 -1
- package/build/esm/lib/Values.d.ts +3 -3
- package/build/esm/lib/Values.d.ts.map +1 -1
- package/build/esm/lib/Values.js +1 -1
- package/build/esm/lib/Values.js.map +1 -1
- package/build/esm/lib/_Types.d.ts +2 -2
- package/build/esm/lib/_Types.d.ts.map +1 -1
- package/build/esm/lib/_Types.js +1 -1
- package/build/esm/lib/_Types.js.map +1 -1
- package/build/esm/lib/serializers.d.ts +1 -1
- package/build/esm/lib/serializers.d.ts.map +1 -1
- package/build/esm/lib/serializers.js +1 -1
- package/build/esm/lib/serializers.js.map +1 -1
- package/build/esm/lib/traits.d.ts +2 -2
- package/build/esm/lib/traits.d.ts.map +1 -1
- package/build/esm/lib/utils.d.ts +2 -2
- package/build/esm/lib/utils.d.ts.map +1 -1
- package/build/esm/lib/utils.js +2 -2
- package/build/esm/lib/utils.js.map +1 -1
- package/package.json +6 -6
|
@@ -53,9 +53,8 @@ __export(IrrigationCC_exports, {
|
|
|
53
53
|
});
|
|
54
54
|
module.exports = __toCommonJS(IrrigationCC_exports);
|
|
55
55
|
var __validateArgs = __toESM(require("./IrrigationCC._validateArgs.js"), 1);
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var import_safe3 = require("@zwave-js/shared/safe");
|
|
56
|
+
var import_core = require("@zwave-js/core");
|
|
57
|
+
var import_shared = require("@zwave-js/shared");
|
|
59
58
|
var import_API = require("../lib/API.js");
|
|
60
59
|
var import_CCValueUtils = require("../lib/CCValueUtils.js");
|
|
61
60
|
var import_CommandClass = require("../lib/CommandClass.js");
|
|
@@ -121,7 +120,7 @@ const valveConfigPropertyKeys = [
|
|
|
121
120
|
"useMoistureSensor"
|
|
122
121
|
];
|
|
123
122
|
let IrrigationCCAPI = (() => {
|
|
124
|
-
let _classDecorators = [(0, import_CommandClassDecorators.API)(
|
|
123
|
+
let _classDecorators = [(0, import_CommandClassDecorators.API)(import_core.CommandClasses.Irrigation)];
|
|
125
124
|
let _classDescriptor;
|
|
126
125
|
let _classExtraInitializers = [];
|
|
127
126
|
let _classThis;
|
|
@@ -188,7 +187,7 @@ let IrrigationCCAPI = (() => {
|
|
|
188
187
|
});
|
|
189
188
|
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
190
189
|
if (response) {
|
|
191
|
-
return (0,
|
|
190
|
+
return (0, import_shared.pick)(response, [
|
|
192
191
|
"numValves",
|
|
193
192
|
"numValveTables",
|
|
194
193
|
"supportsMasterValve",
|
|
@@ -205,7 +204,7 @@ let IrrigationCCAPI = (() => {
|
|
|
205
204
|
});
|
|
206
205
|
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
207
206
|
if (response) {
|
|
208
|
-
return (0,
|
|
207
|
+
return (0, import_shared.pick)(response, [
|
|
209
208
|
"systemVoltage",
|
|
210
209
|
"flowSensorActive",
|
|
211
210
|
"pressureSensorActive",
|
|
@@ -233,7 +232,7 @@ let IrrigationCCAPI = (() => {
|
|
|
233
232
|
});
|
|
234
233
|
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
235
234
|
if (response) {
|
|
236
|
-
return (0,
|
|
235
|
+
return (0, import_shared.pick)(response, [
|
|
237
236
|
"masterValveDelay",
|
|
238
237
|
"highPressureThreshold",
|
|
239
238
|
"lowPressureThreshold",
|
|
@@ -260,7 +259,7 @@ let IrrigationCCAPI = (() => {
|
|
|
260
259
|
});
|
|
261
260
|
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
262
261
|
if (response) {
|
|
263
|
-
return (0,
|
|
262
|
+
return (0, import_shared.pick)(response, [
|
|
264
263
|
"connected",
|
|
265
264
|
"nominalCurrent",
|
|
266
265
|
"errorShortCircuit",
|
|
@@ -290,7 +289,7 @@ let IrrigationCCAPI = (() => {
|
|
|
290
289
|
});
|
|
291
290
|
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
292
291
|
if (response) {
|
|
293
|
-
return (0,
|
|
292
|
+
return (0, import_shared.pick)(response, [
|
|
294
293
|
"nominalCurrentHighThreshold",
|
|
295
294
|
"nominalCurrentLowThreshold",
|
|
296
295
|
"maximumFlow",
|
|
@@ -319,7 +318,7 @@ let IrrigationCCAPI = (() => {
|
|
|
319
318
|
if (!this.endpoint.virtual) {
|
|
320
319
|
const maxValveTableSize = IrrigationCC.getMaxValveTableSizeCached(this.host, this.endpoint);
|
|
321
320
|
if (maxValveTableSize != void 0 && entries.length > maxValveTableSize) {
|
|
322
|
-
throw new
|
|
321
|
+
throw new import_core.ZWaveError(`The number of valve table entries must not exceed ${maxValveTableSize}.`, import_core.ZWaveErrorCodes.Argument_Invalid);
|
|
323
322
|
}
|
|
324
323
|
}
|
|
325
324
|
const cc = new IrrigationCCValveTableSet({
|
|
@@ -383,7 +382,7 @@ let IrrigationCCAPI = (() => {
|
|
|
383
382
|
};
|
|
384
383
|
const cachedVal = valueDB.getValue(valueId);
|
|
385
384
|
if (cachedVal == void 0) {
|
|
386
|
-
throw new
|
|
385
|
+
throw new import_core.ZWaveError(`The "${property}" property cannot be changed before ${prop} is known!`, import_core.ZWaveErrorCodes.Argument_Invalid);
|
|
387
386
|
}
|
|
388
387
|
options[prop] = cachedVal;
|
|
389
388
|
}
|
|
@@ -410,7 +409,7 @@ let IrrigationCCAPI = (() => {
|
|
|
410
409
|
};
|
|
411
410
|
const cachedVal = valueDB.getValue(valueId);
|
|
412
411
|
if (cachedVal == void 0) {
|
|
413
|
-
throw new
|
|
412
|
+
throw new import_core.ZWaveError(`The "${property}_${propertyKey}" property cannot be changed before ${property}_${prop} is known!`, import_core.ZWaveErrorCodes.Argument_Invalid);
|
|
414
413
|
}
|
|
415
414
|
options[prop] = cachedVal;
|
|
416
415
|
}
|
|
@@ -425,7 +424,7 @@ let IrrigationCCAPI = (() => {
|
|
|
425
424
|
if (value) {
|
|
426
425
|
const duration = valueDB.getValue(import_CCValues_generated.IrrigationCCValues.valveRunDuration(property).endpoint(this.endpoint.index));
|
|
427
426
|
if (duration == void 0) {
|
|
428
|
-
throw new
|
|
427
|
+
throw new import_core.ZWaveError(`Cannot start a valve run without specifying a duration first!`, import_core.ZWaveErrorCodes.Argument_Invalid);
|
|
429
428
|
}
|
|
430
429
|
return this.runValve(property, duration);
|
|
431
430
|
} else {
|
|
@@ -499,7 +498,7 @@ let IrrigationCCAPI = (() => {
|
|
|
499
498
|
return IrrigationCCAPI2 = _classThis;
|
|
500
499
|
})();
|
|
501
500
|
let IrrigationCC = (() => {
|
|
502
|
-
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(
|
|
501
|
+
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_core.CommandClasses.Irrigation), (0, import_CommandClassDecorators.implementedVersion)(1), (0, import_CommandClassDecorators.ccValues)(import_CCValues_generated.IrrigationCCValues)];
|
|
503
502
|
let _classDescriptor;
|
|
504
503
|
let _classExtraInitializers = [];
|
|
505
504
|
let _classThis;
|
|
@@ -542,8 +541,8 @@ let IrrigationCC = (() => {
|
|
|
542
541
|
async interview(ctx) {
|
|
543
542
|
const node = this.getNode(ctx);
|
|
544
543
|
const endpoint = this.getEndpoint(ctx);
|
|
545
|
-
const api = import_API.CCAPI.create(
|
|
546
|
-
priority:
|
|
544
|
+
const api = import_API.CCAPI.create(import_core.CommandClasses.Irrigation, ctx, endpoint).withOptions({
|
|
545
|
+
priority: import_core.MessagePriority.NodeQuery
|
|
547
546
|
});
|
|
548
547
|
ctx.logNode(node.id, {
|
|
549
548
|
endpoint: this.endpointIndex,
|
|
@@ -585,8 +584,8 @@ max. valve table size: ${systemInfo.maxValveTableSize}`;
|
|
|
585
584
|
async refreshValues(ctx) {
|
|
586
585
|
const node = this.getNode(ctx);
|
|
587
586
|
const endpoint = this.getEndpoint(ctx);
|
|
588
|
-
const api = import_API.CCAPI.create(
|
|
589
|
-
priority:
|
|
587
|
+
const api = import_API.CCAPI.create(import_core.CommandClasses.Irrigation, ctx, endpoint).withOptions({
|
|
588
|
+
priority: import_core.MessagePriority.NodeQuery
|
|
590
589
|
});
|
|
591
590
|
ctx.logNode(node.id, {
|
|
592
591
|
endpoint: this.endpointIndex,
|
|
@@ -601,11 +600,11 @@ high pressure threshold: ${systemConfig.highPressureThreshold} kPa
|
|
|
601
600
|
low pressure threshold: ${systemConfig.lowPressureThreshold} kPa`;
|
|
602
601
|
if (systemConfig.rainSensorPolarity != void 0) {
|
|
603
602
|
logMessage += `
|
|
604
|
-
rain sensor polarity: ${(0,
|
|
603
|
+
rain sensor polarity: ${(0, import_shared.getEnumMemberName)(import_Types.IrrigationSensorPolarity, systemConfig.rainSensorPolarity)}`;
|
|
605
604
|
}
|
|
606
605
|
if (systemConfig.moistureSensorPolarity != void 0) {
|
|
607
606
|
logMessage += `
|
|
608
|
-
moisture sensor polarity: ${(0,
|
|
607
|
+
moisture sensor polarity: ${(0, import_shared.getEnumMemberName)(import_Types.IrrigationSensorPolarity, systemConfig.moistureSensorPolarity)}`;
|
|
609
608
|
}
|
|
610
609
|
ctx.logNode(node.id, {
|
|
611
610
|
endpoint: this.endpointIndex,
|
|
@@ -687,7 +686,7 @@ let IrrigationCCSystemInfoReport = (() => {
|
|
|
687
686
|
this.maxValveTableSize = options.maxValveTableSize;
|
|
688
687
|
}
|
|
689
688
|
static from(raw, ctx) {
|
|
690
|
-
(0,
|
|
689
|
+
(0, import_core.validatePayload)(raw.payload.length >= 4);
|
|
691
690
|
const supportsMasterValve = !!(raw.payload[0] & 1);
|
|
692
691
|
const numValves = raw.payload[1];
|
|
693
692
|
const numValveTables = raw.payload[2];
|
|
@@ -780,7 +779,7 @@ let IrrigationCCSystemStatusReport = (() => {
|
|
|
780
779
|
this.firstOpenZoneId = options.firstOpenZoneId;
|
|
781
780
|
}
|
|
782
781
|
static from(raw, ctx) {
|
|
783
|
-
(0,
|
|
782
|
+
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
784
783
|
const systemVoltage = raw.payload[0];
|
|
785
784
|
const flowSensorActive = !!(raw.payload[1] & 1);
|
|
786
785
|
const pressureSensorActive = !!(raw.payload[1] & 2);
|
|
@@ -789,21 +788,21 @@ let IrrigationCCSystemStatusReport = (() => {
|
|
|
789
788
|
let offset = 2;
|
|
790
789
|
let flow;
|
|
791
790
|
{
|
|
792
|
-
const { value, scale, bytesRead } = (0,
|
|
793
|
-
(0,
|
|
791
|
+
const { value, scale, bytesRead } = (0, import_core.parseFloatWithScale)(raw.payload.subarray(offset));
|
|
792
|
+
(0, import_core.validatePayload)(scale === 0);
|
|
794
793
|
if (flowSensorActive)
|
|
795
794
|
flow = value;
|
|
796
795
|
offset += bytesRead;
|
|
797
796
|
}
|
|
798
797
|
let pressure;
|
|
799
798
|
{
|
|
800
|
-
const { value, scale, bytesRead } = (0,
|
|
801
|
-
(0,
|
|
799
|
+
const { value, scale, bytesRead } = (0, import_core.parseFloatWithScale)(raw.payload.subarray(offset));
|
|
800
|
+
(0, import_core.validatePayload)(scale === 0);
|
|
802
801
|
if (pressureSensorActive)
|
|
803
802
|
pressure = value;
|
|
804
803
|
offset += bytesRead;
|
|
805
804
|
}
|
|
806
|
-
(0,
|
|
805
|
+
(0, import_core.validatePayload)(raw.payload.length >= offset + 4);
|
|
807
806
|
const shutoffDuration = raw.payload[offset];
|
|
808
807
|
const errorNotProgrammed = !!(raw.payload[offset + 1] & 1);
|
|
809
808
|
const errorEmergencyShutdown = !!(raw.payload[offset + 1] & 2);
|
|
@@ -939,7 +938,7 @@ let IrrigationCCSystemConfigSet = (() => {
|
|
|
939
938
|
this.moistureSensorPolarity = options.moistureSensorPolarity;
|
|
940
939
|
}
|
|
941
940
|
static from(_raw, _ctx) {
|
|
942
|
-
throw new
|
|
941
|
+
throw new import_core.ZWaveError(`${this.name}: deserialization not implemented`, import_core.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
943
942
|
}
|
|
944
943
|
masterValveDelay;
|
|
945
944
|
highPressureThreshold;
|
|
@@ -955,19 +954,19 @@ let IrrigationCCSystemConfigSet = (() => {
|
|
|
955
954
|
if (this.rainSensorPolarity == void 0 && this.moistureSensorPolarity == void 0) {
|
|
956
955
|
polarity |= 128;
|
|
957
956
|
}
|
|
958
|
-
this.payload =
|
|
959
|
-
|
|
960
|
-
(0,
|
|
957
|
+
this.payload = import_shared.Bytes.concat([
|
|
958
|
+
import_shared.Bytes.from([this.masterValveDelay]),
|
|
959
|
+
(0, import_core.encodeFloatWithScale)(
|
|
961
960
|
this.highPressureThreshold,
|
|
962
961
|
0
|
|
963
962
|
/* kPa */
|
|
964
963
|
),
|
|
965
|
-
(0,
|
|
964
|
+
(0, import_core.encodeFloatWithScale)(
|
|
966
965
|
this.lowPressureThreshold,
|
|
967
966
|
0
|
|
968
967
|
/* kPa */
|
|
969
968
|
),
|
|
970
|
-
|
|
969
|
+
import_shared.Bytes.from([polarity])
|
|
971
970
|
]);
|
|
972
971
|
return super.serialize(ctx);
|
|
973
972
|
}
|
|
@@ -978,10 +977,10 @@ let IrrigationCCSystemConfigSet = (() => {
|
|
|
978
977
|
"low pressure threshold": `${this.lowPressureThreshold} kPa`
|
|
979
978
|
};
|
|
980
979
|
if (this.rainSensorPolarity != void 0) {
|
|
981
|
-
message["rain sensor polarity"] = (0,
|
|
980
|
+
message["rain sensor polarity"] = (0, import_shared.getEnumMemberName)(import_Types.IrrigationSensorPolarity, this.rainSensorPolarity);
|
|
982
981
|
}
|
|
983
982
|
if (this.moistureSensorPolarity != void 0) {
|
|
984
|
-
message["moisture sensor polarity"] = (0,
|
|
983
|
+
message["moisture sensor polarity"] = (0, import_shared.getEnumMemberName)(import_Types.IrrigationSensorPolarity, this.moistureSensorPolarity);
|
|
985
984
|
}
|
|
986
985
|
return {
|
|
987
986
|
...super.toLogEntry(ctx),
|
|
@@ -1020,13 +1019,13 @@ let IrrigationCCSystemConfigReport = (() => {
|
|
|
1020
1019
|
this.moistureSensorPolarity = options.moistureSensorPolarity;
|
|
1021
1020
|
}
|
|
1022
1021
|
static from(raw, ctx) {
|
|
1023
|
-
(0,
|
|
1022
|
+
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
1024
1023
|
const masterValveDelay = raw.payload[0];
|
|
1025
1024
|
let offset = 1;
|
|
1026
1025
|
let highPressureThreshold;
|
|
1027
1026
|
{
|
|
1028
|
-
const { value, scale, bytesRead } = (0,
|
|
1029
|
-
(0,
|
|
1027
|
+
const { value, scale, bytesRead } = (0, import_core.parseFloatWithScale)(raw.payload.subarray(offset));
|
|
1028
|
+
(0, import_core.validatePayload)(
|
|
1030
1029
|
scale === 0
|
|
1031
1030
|
/* kPa */
|
|
1032
1031
|
);
|
|
@@ -1035,15 +1034,15 @@ let IrrigationCCSystemConfigReport = (() => {
|
|
|
1035
1034
|
}
|
|
1036
1035
|
let lowPressureThreshold;
|
|
1037
1036
|
{
|
|
1038
|
-
const { value, scale, bytesRead } = (0,
|
|
1039
|
-
(0,
|
|
1037
|
+
const { value, scale, bytesRead } = (0, import_core.parseFloatWithScale)(raw.payload.subarray(offset));
|
|
1038
|
+
(0, import_core.validatePayload)(
|
|
1040
1039
|
scale === 0
|
|
1041
1040
|
/* kPa */
|
|
1042
1041
|
);
|
|
1043
1042
|
lowPressureThreshold = value;
|
|
1044
1043
|
offset += bytesRead;
|
|
1045
1044
|
}
|
|
1046
|
-
(0,
|
|
1045
|
+
(0, import_core.validatePayload)(raw.payload.length >= offset + 1);
|
|
1047
1046
|
const polarity = raw.payload[offset];
|
|
1048
1047
|
let rainSensorPolarity;
|
|
1049
1048
|
let moistureSensorPolarity;
|
|
@@ -1072,10 +1071,10 @@ let IrrigationCCSystemConfigReport = (() => {
|
|
|
1072
1071
|
"low pressure threshold": `${this.lowPressureThreshold} kPa`
|
|
1073
1072
|
};
|
|
1074
1073
|
if (this.rainSensorPolarity != void 0) {
|
|
1075
|
-
message["rain sensor polarity"] = (0,
|
|
1074
|
+
message["rain sensor polarity"] = (0, import_shared.getEnumMemberName)(import_Types.IrrigationSensorPolarity, this.rainSensorPolarity);
|
|
1076
1075
|
}
|
|
1077
1076
|
if (this.moistureSensorPolarity != void 0) {
|
|
1078
|
-
message["moisture sensor polarity"] = (0,
|
|
1077
|
+
message["moisture sensor polarity"] = (0, import_shared.getEnumMemberName)(import_Types.IrrigationSensorPolarity, this.moistureSensorPolarity);
|
|
1079
1078
|
}
|
|
1080
1079
|
return {
|
|
1081
1080
|
...super.toLogEntry(ctx),
|
|
@@ -1141,7 +1140,7 @@ let IrrigationCCValveInfoReport = (() => {
|
|
|
1141
1140
|
this.errorLowFlow = options.errorLowFlow;
|
|
1142
1141
|
}
|
|
1143
1142
|
static from(raw, ctx) {
|
|
1144
|
-
(0,
|
|
1143
|
+
(0, import_core.validatePayload)(raw.payload.length >= 4);
|
|
1145
1144
|
let valveId;
|
|
1146
1145
|
if ((raw.payload[0] & 1) === import_Types.ValveType.MasterValve) {
|
|
1147
1146
|
valveId = "master";
|
|
@@ -1273,11 +1272,11 @@ let IrrigationCCValveInfoGet = (() => {
|
|
|
1273
1272
|
this.valveId = options.valveId;
|
|
1274
1273
|
}
|
|
1275
1274
|
static from(_raw, _ctx) {
|
|
1276
|
-
throw new
|
|
1275
|
+
throw new import_core.ZWaveError(`${this.name}: deserialization not implemented`, import_core.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
1277
1276
|
}
|
|
1278
1277
|
valveId;
|
|
1279
1278
|
serialize(ctx) {
|
|
1280
|
-
this.payload =
|
|
1279
|
+
this.payload = import_shared.Bytes.from([
|
|
1281
1280
|
this.valveId === "master" ? 1 : 0,
|
|
1282
1281
|
this.valveId === "master" ? 1 : this.valveId || 1
|
|
1283
1282
|
]);
|
|
@@ -1326,7 +1325,7 @@ let IrrigationCCValveConfigSet = (() => {
|
|
|
1326
1325
|
this.useMoistureSensor = options.useMoistureSensor;
|
|
1327
1326
|
}
|
|
1328
1327
|
static from(_raw, _ctx) {
|
|
1329
|
-
throw new
|
|
1328
|
+
throw new import_core.ZWaveError(`${this.name}: deserialization not implemented`, import_core.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
1330
1329
|
}
|
|
1331
1330
|
valveId;
|
|
1332
1331
|
nominalCurrentHighThreshold;
|
|
@@ -1337,29 +1336,29 @@ let IrrigationCCValveConfigSet = (() => {
|
|
|
1337
1336
|
useRainSensor;
|
|
1338
1337
|
useMoistureSensor;
|
|
1339
1338
|
serialize(ctx) {
|
|
1340
|
-
this.payload =
|
|
1341
|
-
|
|
1339
|
+
this.payload = import_shared.Bytes.concat([
|
|
1340
|
+
import_shared.Bytes.from([
|
|
1342
1341
|
this.valveId === "master" ? 1 : 0,
|
|
1343
1342
|
this.valveId === "master" ? 1 : this.valveId || 1,
|
|
1344
1343
|
Math.floor(this.nominalCurrentHighThreshold / 10),
|
|
1345
1344
|
Math.floor(this.nominalCurrentLowThreshold / 10)
|
|
1346
1345
|
]),
|
|
1347
|
-
(0,
|
|
1346
|
+
(0, import_core.encodeFloatWithScale)(
|
|
1348
1347
|
this.maximumFlow,
|
|
1349
1348
|
0
|
|
1350
1349
|
/* l/h */
|
|
1351
1350
|
),
|
|
1352
|
-
(0,
|
|
1351
|
+
(0, import_core.encodeFloatWithScale)(
|
|
1353
1352
|
this.highFlowThreshold,
|
|
1354
1353
|
0
|
|
1355
1354
|
/* l/h */
|
|
1356
1355
|
),
|
|
1357
|
-
(0,
|
|
1356
|
+
(0, import_core.encodeFloatWithScale)(
|
|
1358
1357
|
this.lowFlowThreshold,
|
|
1359
1358
|
0
|
|
1360
1359
|
/* l/h */
|
|
1361
1360
|
),
|
|
1362
|
-
|
|
1361
|
+
import_shared.Bytes.from([
|
|
1363
1362
|
(this.useRainSensor ? 1 : 0) | (this.useMoistureSensor ? 2 : 0)
|
|
1364
1363
|
])
|
|
1365
1364
|
]);
|
|
@@ -1415,7 +1414,7 @@ let IrrigationCCValveConfigReport = (() => {
|
|
|
1415
1414
|
this.useMoistureSensor = options.useMoistureSensor;
|
|
1416
1415
|
}
|
|
1417
1416
|
static from(raw, ctx) {
|
|
1418
|
-
(0,
|
|
1417
|
+
(0, import_core.validatePayload)(raw.payload.length >= 4);
|
|
1419
1418
|
let valveId;
|
|
1420
1419
|
if ((raw.payload[0] & 1) === import_Types.ValveType.MasterValve) {
|
|
1421
1420
|
valveId = "master";
|
|
@@ -1427,8 +1426,8 @@ let IrrigationCCValveConfigReport = (() => {
|
|
|
1427
1426
|
let offset = 4;
|
|
1428
1427
|
let maximumFlow;
|
|
1429
1428
|
{
|
|
1430
|
-
const { value, scale, bytesRead } = (0,
|
|
1431
|
-
(0,
|
|
1429
|
+
const { value, scale, bytesRead } = (0, import_core.parseFloatWithScale)(raw.payload.subarray(offset));
|
|
1430
|
+
(0, import_core.validatePayload)(
|
|
1432
1431
|
scale === 0
|
|
1433
1432
|
/* l/h */
|
|
1434
1433
|
);
|
|
@@ -1437,8 +1436,8 @@ let IrrigationCCValveConfigReport = (() => {
|
|
|
1437
1436
|
}
|
|
1438
1437
|
let highFlowThreshold;
|
|
1439
1438
|
{
|
|
1440
|
-
const { value, scale, bytesRead } = (0,
|
|
1441
|
-
(0,
|
|
1439
|
+
const { value, scale, bytesRead } = (0, import_core.parseFloatWithScale)(raw.payload.subarray(offset));
|
|
1440
|
+
(0, import_core.validatePayload)(
|
|
1442
1441
|
scale === 0
|
|
1443
1442
|
/* l/h */
|
|
1444
1443
|
);
|
|
@@ -1447,15 +1446,15 @@ let IrrigationCCValveConfigReport = (() => {
|
|
|
1447
1446
|
}
|
|
1448
1447
|
let lowFlowThreshold;
|
|
1449
1448
|
{
|
|
1450
|
-
const { value, scale, bytesRead } = (0,
|
|
1451
|
-
(0,
|
|
1449
|
+
const { value, scale, bytesRead } = (0, import_core.parseFloatWithScale)(raw.payload.subarray(offset));
|
|
1450
|
+
(0, import_core.validatePayload)(
|
|
1452
1451
|
scale === 0
|
|
1453
1452
|
/* l/h */
|
|
1454
1453
|
);
|
|
1455
1454
|
lowFlowThreshold = value;
|
|
1456
1455
|
offset += bytesRead;
|
|
1457
1456
|
}
|
|
1458
|
-
(0,
|
|
1457
|
+
(0, import_core.validatePayload)(raw.payload.length >= offset + 1);
|
|
1459
1458
|
const useRainSensor = !!(raw.payload[offset] & 1);
|
|
1460
1459
|
const useMoistureSensor = !!(raw.payload[offset] & 2);
|
|
1461
1460
|
return new this({
|
|
@@ -1547,11 +1546,11 @@ let IrrigationCCValveConfigGet = (() => {
|
|
|
1547
1546
|
this.valveId = options.valveId;
|
|
1548
1547
|
}
|
|
1549
1548
|
static from(_raw, _ctx) {
|
|
1550
|
-
throw new
|
|
1549
|
+
throw new import_core.ZWaveError(`${this.name}: deserialization not implemented`, import_core.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
1551
1550
|
}
|
|
1552
1551
|
valveId;
|
|
1553
1552
|
serialize(ctx) {
|
|
1554
|
-
this.payload =
|
|
1553
|
+
this.payload = import_shared.Bytes.from([
|
|
1555
1554
|
this.valveId === "master" ? 1 : 0,
|
|
1556
1555
|
this.valveId === "master" ? 1 : this.valveId || 1
|
|
1557
1556
|
]);
|
|
@@ -1594,12 +1593,12 @@ let IrrigationCCValveRun = (() => {
|
|
|
1594
1593
|
this.duration = options.duration;
|
|
1595
1594
|
}
|
|
1596
1595
|
static from(_raw, _ctx) {
|
|
1597
|
-
throw new
|
|
1596
|
+
throw new import_core.ZWaveError(`${this.name}: deserialization not implemented`, import_core.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
1598
1597
|
}
|
|
1599
1598
|
valveId;
|
|
1600
1599
|
duration;
|
|
1601
1600
|
serialize(ctx) {
|
|
1602
|
-
this.payload =
|
|
1601
|
+
this.payload = import_shared.Bytes.from([
|
|
1603
1602
|
this.valveId === "master" ? 1 : 0,
|
|
1604
1603
|
this.valveId === "master" ? 1 : this.valveId || 1,
|
|
1605
1604
|
0,
|
|
@@ -1651,12 +1650,12 @@ let IrrigationCCValveTableSet = (() => {
|
|
|
1651
1650
|
this.entries = options.entries;
|
|
1652
1651
|
}
|
|
1653
1652
|
static from(_raw, _ctx) {
|
|
1654
|
-
throw new
|
|
1653
|
+
throw new import_core.ZWaveError(`${this.name}: deserialization not implemented`, import_core.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
1655
1654
|
}
|
|
1656
1655
|
tableId;
|
|
1657
1656
|
entries;
|
|
1658
1657
|
serialize(ctx) {
|
|
1659
|
-
this.payload = new
|
|
1658
|
+
this.payload = new import_shared.Bytes(1 + this.entries.length * 3);
|
|
1660
1659
|
this.payload[0] = this.tableId;
|
|
1661
1660
|
for (let i = 0; i < this.entries.length; i++) {
|
|
1662
1661
|
const entry = this.entries[i];
|
|
@@ -1713,7 +1712,7 @@ let IrrigationCCValveTableReport = (() => {
|
|
|
1713
1712
|
this.entries = options.entries;
|
|
1714
1713
|
}
|
|
1715
1714
|
static from(raw, ctx) {
|
|
1716
|
-
(0,
|
|
1715
|
+
(0, import_core.validatePayload)((raw.payload.length - 1) % 3 === 0);
|
|
1717
1716
|
const tableId = raw.payload[0];
|
|
1718
1717
|
const entries = [];
|
|
1719
1718
|
for (let offset = 1; offset < raw.payload.length; offset += 3) {
|
|
@@ -1780,11 +1779,11 @@ let IrrigationCCValveTableGet = (() => {
|
|
|
1780
1779
|
this.tableId = options.tableId;
|
|
1781
1780
|
}
|
|
1782
1781
|
static from(_raw, _ctx) {
|
|
1783
|
-
throw new
|
|
1782
|
+
throw new import_core.ZWaveError(`${this.name}: deserialization not implemented`, import_core.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
1784
1783
|
}
|
|
1785
1784
|
tableId;
|
|
1786
1785
|
serialize(ctx) {
|
|
1787
|
-
this.payload =
|
|
1786
|
+
this.payload = import_shared.Bytes.from([this.tableId]);
|
|
1788
1787
|
return super.serialize(ctx);
|
|
1789
1788
|
}
|
|
1790
1789
|
toLogEntry(ctx) {
|
|
@@ -1822,15 +1821,15 @@ let IrrigationCCValveTableRun = (() => {
|
|
|
1822
1821
|
super(options);
|
|
1823
1822
|
this.tableIDs = options.tableIDs;
|
|
1824
1823
|
if (this.tableIDs.length < 1) {
|
|
1825
|
-
throw new
|
|
1824
|
+
throw new import_core.ZWaveError(`${this.constructor.name}: At least one table ID must be specified.`, import_core.ZWaveErrorCodes.Argument_Invalid);
|
|
1826
1825
|
}
|
|
1827
1826
|
}
|
|
1828
1827
|
static from(_raw, _ctx) {
|
|
1829
|
-
throw new
|
|
1828
|
+
throw new import_core.ZWaveError(`${this.name}: deserialization not implemented`, import_core.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
1830
1829
|
}
|
|
1831
1830
|
tableIDs;
|
|
1832
1831
|
serialize(ctx) {
|
|
1833
|
-
this.payload =
|
|
1832
|
+
this.payload = import_shared.Bytes.from(this.tableIDs);
|
|
1834
1833
|
return super.serialize(ctx);
|
|
1835
1834
|
}
|
|
1836
1835
|
toLogEntry(ctx) {
|
|
@@ -1869,11 +1868,11 @@ let IrrigationCCSystemShutoff = (() => {
|
|
|
1869
1868
|
this.duration = options.duration;
|
|
1870
1869
|
}
|
|
1871
1870
|
static from(_raw, _ctx) {
|
|
1872
|
-
throw new
|
|
1871
|
+
throw new import_core.ZWaveError(`${this.name}: deserialization not implemented`, import_core.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
1873
1872
|
}
|
|
1874
1873
|
duration;
|
|
1875
1874
|
serialize(ctx) {
|
|
1876
|
-
this.payload =
|
|
1875
|
+
this.payload = import_shared.Bytes.from([this.duration ?? 255]);
|
|
1877
1876
|
return super.serialize(ctx);
|
|
1878
1877
|
}
|
|
1879
1878
|
toLogEntry(ctx) {
|