@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,2224 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var IrrigationCC_exports = {};
|
|
20
|
+
__export(IrrigationCC_exports, {
|
|
21
|
+
IrrigationCC: () => IrrigationCC,
|
|
22
|
+
IrrigationCCAPI: () => IrrigationCCAPI,
|
|
23
|
+
IrrigationCCSystemConfigGet: () => IrrigationCCSystemConfigGet,
|
|
24
|
+
IrrigationCCSystemConfigReport: () => IrrigationCCSystemConfigReport,
|
|
25
|
+
IrrigationCCSystemConfigSet: () => IrrigationCCSystemConfigSet,
|
|
26
|
+
IrrigationCCSystemInfoGet: () => IrrigationCCSystemInfoGet,
|
|
27
|
+
IrrigationCCSystemInfoReport: () => IrrigationCCSystemInfoReport,
|
|
28
|
+
IrrigationCCSystemShutoff: () => IrrigationCCSystemShutoff,
|
|
29
|
+
IrrigationCCSystemStatusGet: () => IrrigationCCSystemStatusGet,
|
|
30
|
+
IrrigationCCSystemStatusReport: () => IrrigationCCSystemStatusReport,
|
|
31
|
+
IrrigationCCValues: () => IrrigationCCValues,
|
|
32
|
+
IrrigationCCValveConfigGet: () => IrrigationCCValveConfigGet,
|
|
33
|
+
IrrigationCCValveConfigReport: () => IrrigationCCValveConfigReport,
|
|
34
|
+
IrrigationCCValveConfigSet: () => IrrigationCCValveConfigSet,
|
|
35
|
+
IrrigationCCValveInfoGet: () => IrrigationCCValveInfoGet,
|
|
36
|
+
IrrigationCCValveInfoReport: () => IrrigationCCValveInfoReport,
|
|
37
|
+
IrrigationCCValveRun: () => IrrigationCCValveRun,
|
|
38
|
+
IrrigationCCValveTableGet: () => IrrigationCCValveTableGet,
|
|
39
|
+
IrrigationCCValveTableReport: () => IrrigationCCValveTableReport,
|
|
40
|
+
IrrigationCCValveTableRun: () => IrrigationCCValveTableRun,
|
|
41
|
+
IrrigationCCValveTableSet: () => IrrigationCCValveTableSet
|
|
42
|
+
});
|
|
43
|
+
module.exports = __toCommonJS(IrrigationCC_exports);
|
|
44
|
+
var import_safe = require("@zwave-js/core/safe");
|
|
45
|
+
var import_safe2 = require("@zwave-js/shared/safe");
|
|
46
|
+
var import_safe3 = require("@zwave-js/shared/safe");
|
|
47
|
+
var import_strings = require("alcalzone-shared/strings/index.js");
|
|
48
|
+
var import_API = require("../lib/API.js");
|
|
49
|
+
var import_CommandClass = require("../lib/CommandClass.js");
|
|
50
|
+
var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
|
|
51
|
+
var import_Values = require("../lib/Values.js");
|
|
52
|
+
var import_Types = require("../lib/_Types.js");
|
|
53
|
+
var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
54
|
+
function accept(f) {
|
|
55
|
+
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
56
|
+
return f;
|
|
57
|
+
}
|
|
58
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
59
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
60
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
61
|
+
var _, done = false;
|
|
62
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
63
|
+
var context = {};
|
|
64
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
65
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
66
|
+
context.addInitializer = function(f) {
|
|
67
|
+
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
68
|
+
extraInitializers.push(accept(f || null));
|
|
69
|
+
};
|
|
70
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
71
|
+
if (kind === "accessor") {
|
|
72
|
+
if (result === void 0) continue;
|
|
73
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
74
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
75
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
76
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
77
|
+
} else if (_ = accept(result)) {
|
|
78
|
+
if (kind === "field") initializers.unshift(_);
|
|
79
|
+
else descriptor[key] = _;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
83
|
+
done = true;
|
|
84
|
+
};
|
|
85
|
+
var __runInitializers = function(thisArg, initializers, value) {
|
|
86
|
+
var useValue = arguments.length > 2;
|
|
87
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
88
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
89
|
+
}
|
|
90
|
+
return useValue ? value : void 0;
|
|
91
|
+
};
|
|
92
|
+
function __assertType(argName, typeName, boundHasError) {
|
|
93
|
+
const { ZWaveError: ZWaveError2, ZWaveErrorCodes: ZWaveErrorCodes2 } = require("@zwave-js/core");
|
|
94
|
+
if (boundHasError()) {
|
|
95
|
+
throw new ZWaveError2(typeName ? `${argName} is not a ${typeName}` : `${argName} has the wrong type`, ZWaveErrorCodes2.Argument_Invalid);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
const __assertType__IrrigationCCSystemConfigSetOptions = ($o) => {
|
|
99
|
+
function _number($o2) {
|
|
100
|
+
return typeof $o2 !== "number" ? {} : null;
|
|
101
|
+
}
|
|
102
|
+
function su__2__3_eu($o2) {
|
|
103
|
+
return ![0, 1].includes($o2) ? {} : null;
|
|
104
|
+
}
|
|
105
|
+
function _0($o2) {
|
|
106
|
+
if (typeof $o2 !== "object" || $o2 === null || Array.isArray($o2))
|
|
107
|
+
return {};
|
|
108
|
+
if ("masterValveDelay" in $o2 && $o2["masterValveDelay"] !== void 0) {
|
|
109
|
+
const error = _number($o2["masterValveDelay"]);
|
|
110
|
+
if (error)
|
|
111
|
+
return error;
|
|
112
|
+
} else
|
|
113
|
+
return {};
|
|
114
|
+
if ("highPressureThreshold" in $o2 && $o2["highPressureThreshold"] !== void 0) {
|
|
115
|
+
const error = _number($o2["highPressureThreshold"]);
|
|
116
|
+
if (error)
|
|
117
|
+
return error;
|
|
118
|
+
} else
|
|
119
|
+
return {};
|
|
120
|
+
if ("lowPressureThreshold" in $o2 && $o2["lowPressureThreshold"] !== void 0) {
|
|
121
|
+
const error = _number($o2["lowPressureThreshold"]);
|
|
122
|
+
if (error)
|
|
123
|
+
return error;
|
|
124
|
+
} else
|
|
125
|
+
return {};
|
|
126
|
+
if ("rainSensorPolarity" in $o2 && $o2["rainSensorPolarity"] !== void 0) {
|
|
127
|
+
const error = su__2__3_eu($o2["rainSensorPolarity"]);
|
|
128
|
+
if (error)
|
|
129
|
+
return error;
|
|
130
|
+
}
|
|
131
|
+
if ("moistureSensorPolarity" in $o2 && $o2["moistureSensorPolarity"] !== void 0) {
|
|
132
|
+
const error = su__2__3_eu($o2["moistureSensorPolarity"]);
|
|
133
|
+
if (error)
|
|
134
|
+
return error;
|
|
135
|
+
}
|
|
136
|
+
return null;
|
|
137
|
+
}
|
|
138
|
+
return _0($o);
|
|
139
|
+
};
|
|
140
|
+
const __assertType__ValveId = ($o) => {
|
|
141
|
+
function _number($o2) {
|
|
142
|
+
return typeof $o2 !== "number" ? {} : null;
|
|
143
|
+
}
|
|
144
|
+
function _2($o2) {
|
|
145
|
+
return $o2 !== "master" ? {} : null;
|
|
146
|
+
}
|
|
147
|
+
function su__number__2_eu($o2) {
|
|
148
|
+
const conditions = [_number, _2];
|
|
149
|
+
for (const condition of conditions) {
|
|
150
|
+
const error = condition($o2);
|
|
151
|
+
if (!error)
|
|
152
|
+
return null;
|
|
153
|
+
}
|
|
154
|
+
return {};
|
|
155
|
+
}
|
|
156
|
+
return su__number__2_eu($o);
|
|
157
|
+
};
|
|
158
|
+
const __assertType__IrrigationCCValveConfigSetOptions = ($o) => {
|
|
159
|
+
function _number($o2) {
|
|
160
|
+
return typeof $o2 !== "number" ? {} : null;
|
|
161
|
+
}
|
|
162
|
+
function _3($o2) {
|
|
163
|
+
return $o2 !== "master" ? {} : null;
|
|
164
|
+
}
|
|
165
|
+
function su__number__3_eu($o2) {
|
|
166
|
+
const conditions = [_number, _3];
|
|
167
|
+
for (const condition of conditions) {
|
|
168
|
+
const error = condition($o2);
|
|
169
|
+
if (!error)
|
|
170
|
+
return null;
|
|
171
|
+
}
|
|
172
|
+
return {};
|
|
173
|
+
}
|
|
174
|
+
function _boolean($o2) {
|
|
175
|
+
return typeof $o2 !== "boolean" ? {} : null;
|
|
176
|
+
}
|
|
177
|
+
function _0($o2) {
|
|
178
|
+
if (typeof $o2 !== "object" || $o2 === null || Array.isArray($o2))
|
|
179
|
+
return {};
|
|
180
|
+
if ("valveId" in $o2 && $o2["valveId"] !== void 0) {
|
|
181
|
+
const error = su__number__3_eu($o2["valveId"]);
|
|
182
|
+
if (error)
|
|
183
|
+
return error;
|
|
184
|
+
} else
|
|
185
|
+
return {};
|
|
186
|
+
if ("nominalCurrentHighThreshold" in $o2 && $o2["nominalCurrentHighThreshold"] !== void 0) {
|
|
187
|
+
const error = _number($o2["nominalCurrentHighThreshold"]);
|
|
188
|
+
if (error)
|
|
189
|
+
return error;
|
|
190
|
+
} else
|
|
191
|
+
return {};
|
|
192
|
+
if ("nominalCurrentLowThreshold" in $o2 && $o2["nominalCurrentLowThreshold"] !== void 0) {
|
|
193
|
+
const error = _number($o2["nominalCurrentLowThreshold"]);
|
|
194
|
+
if (error)
|
|
195
|
+
return error;
|
|
196
|
+
} else
|
|
197
|
+
return {};
|
|
198
|
+
if ("maximumFlow" in $o2 && $o2["maximumFlow"] !== void 0) {
|
|
199
|
+
const error = _number($o2["maximumFlow"]);
|
|
200
|
+
if (error)
|
|
201
|
+
return error;
|
|
202
|
+
} else
|
|
203
|
+
return {};
|
|
204
|
+
if ("highFlowThreshold" in $o2 && $o2["highFlowThreshold"] !== void 0) {
|
|
205
|
+
const error = _number($o2["highFlowThreshold"]);
|
|
206
|
+
if (error)
|
|
207
|
+
return error;
|
|
208
|
+
} else
|
|
209
|
+
return {};
|
|
210
|
+
if ("lowFlowThreshold" in $o2 && $o2["lowFlowThreshold"] !== void 0) {
|
|
211
|
+
const error = _number($o2["lowFlowThreshold"]);
|
|
212
|
+
if (error)
|
|
213
|
+
return error;
|
|
214
|
+
} else
|
|
215
|
+
return {};
|
|
216
|
+
if ("useRainSensor" in $o2 && $o2["useRainSensor"] !== void 0) {
|
|
217
|
+
const error = _boolean($o2["useRainSensor"]);
|
|
218
|
+
if (error)
|
|
219
|
+
return error;
|
|
220
|
+
} else
|
|
221
|
+
return {};
|
|
222
|
+
if ("useMoistureSensor" in $o2 && $o2["useMoistureSensor"] !== void 0) {
|
|
223
|
+
const error = _boolean($o2["useMoistureSensor"]);
|
|
224
|
+
if (error)
|
|
225
|
+
return error;
|
|
226
|
+
} else
|
|
227
|
+
return {};
|
|
228
|
+
return null;
|
|
229
|
+
}
|
|
230
|
+
return _0($o);
|
|
231
|
+
};
|
|
232
|
+
const __assertType__number = ($o) => {
|
|
233
|
+
function _number($o2) {
|
|
234
|
+
return typeof $o2 !== "number" ? {} : null;
|
|
235
|
+
}
|
|
236
|
+
return _number($o);
|
|
237
|
+
};
|
|
238
|
+
const __assertType__sa__2_ea_2 = ($o) => {
|
|
239
|
+
function _number($o2) {
|
|
240
|
+
return typeof $o2 !== "number" ? {} : null;
|
|
241
|
+
}
|
|
242
|
+
function _2($o2) {
|
|
243
|
+
if (typeof $o2 !== "object" || $o2 === null || Array.isArray($o2))
|
|
244
|
+
return {};
|
|
245
|
+
if ("valveId" in $o2 && $o2["valveId"] !== void 0) {
|
|
246
|
+
const error = _number($o2["valveId"]);
|
|
247
|
+
if (error)
|
|
248
|
+
return error;
|
|
249
|
+
} else
|
|
250
|
+
return {};
|
|
251
|
+
if ("duration" in $o2 && $o2["duration"] !== void 0) {
|
|
252
|
+
const error = _number($o2["duration"]);
|
|
253
|
+
if (error)
|
|
254
|
+
return error;
|
|
255
|
+
} else
|
|
256
|
+
return {};
|
|
257
|
+
return null;
|
|
258
|
+
}
|
|
259
|
+
function sa__2_ea_2($o2) {
|
|
260
|
+
if (!Array.isArray($o2))
|
|
261
|
+
return {};
|
|
262
|
+
for (let i = 0; i < $o2.length; i++) {
|
|
263
|
+
const error = _2($o2[i]);
|
|
264
|
+
if (error)
|
|
265
|
+
return error;
|
|
266
|
+
}
|
|
267
|
+
return null;
|
|
268
|
+
}
|
|
269
|
+
return sa__2_ea_2($o);
|
|
270
|
+
};
|
|
271
|
+
const __assertType__sa__number_ea_2 = ($o) => {
|
|
272
|
+
function _number($o2) {
|
|
273
|
+
return typeof $o2 !== "number" ? {} : null;
|
|
274
|
+
}
|
|
275
|
+
function sa__number_ea_2($o2) {
|
|
276
|
+
if (!Array.isArray($o2))
|
|
277
|
+
return {};
|
|
278
|
+
for (let i = 0; i < $o2.length; i++) {
|
|
279
|
+
const error = _number($o2[i]);
|
|
280
|
+
if (error)
|
|
281
|
+
return error;
|
|
282
|
+
}
|
|
283
|
+
return null;
|
|
284
|
+
}
|
|
285
|
+
return sa__number_ea_2($o);
|
|
286
|
+
};
|
|
287
|
+
const IrrigationCCValues = Object.freeze({
|
|
288
|
+
...import_Values.V.defineStaticCCValues(import_safe.CommandClasses.Irrigation, {
|
|
289
|
+
...import_Values.V.staticProperty("numValves", void 0, { internal: true }),
|
|
290
|
+
...import_Values.V.staticProperty("numValveTables", void 0, { internal: true }),
|
|
291
|
+
...import_Values.V.staticProperty("supportsMasterValve", void 0, {
|
|
292
|
+
internal: true
|
|
293
|
+
}),
|
|
294
|
+
...import_Values.V.staticProperty("maxValveTableSize", void 0, { internal: true }),
|
|
295
|
+
...import_Values.V.staticProperty("systemVoltage", {
|
|
296
|
+
...import_safe.ValueMetadata.ReadOnlyUInt8,
|
|
297
|
+
label: "System voltage",
|
|
298
|
+
unit: "V"
|
|
299
|
+
}),
|
|
300
|
+
...import_Values.V.staticProperty("masterValveDelay", {
|
|
301
|
+
...import_safe.ValueMetadata.UInt8,
|
|
302
|
+
label: "Master valve delay",
|
|
303
|
+
description: "The delay between turning on the master valve and turning on any zone valve",
|
|
304
|
+
unit: "seconds"
|
|
305
|
+
}),
|
|
306
|
+
...import_Values.V.staticProperty("flowSensorActive", {
|
|
307
|
+
...import_safe.ValueMetadata.ReadOnlyBoolean,
|
|
308
|
+
label: "Flow sensor active"
|
|
309
|
+
}),
|
|
310
|
+
...import_Values.V.staticProperty("pressureSensorActive", {
|
|
311
|
+
...import_safe.ValueMetadata.ReadOnlyBoolean,
|
|
312
|
+
label: "Pressure sensor active"
|
|
313
|
+
}),
|
|
314
|
+
...import_Values.V.staticProperty("rainSensorActive", {
|
|
315
|
+
...import_safe.ValueMetadata.ReadOnlyBoolean,
|
|
316
|
+
label: "Rain sensor attached and active"
|
|
317
|
+
}),
|
|
318
|
+
...import_Values.V.staticProperty("rainSensorPolarity", {
|
|
319
|
+
...import_safe.ValueMetadata.Number,
|
|
320
|
+
label: "Rain sensor polarity",
|
|
321
|
+
min: 0,
|
|
322
|
+
max: 1,
|
|
323
|
+
states: (0, import_safe.enumValuesToMetadataStates)(import_Types.IrrigationSensorPolarity)
|
|
324
|
+
}),
|
|
325
|
+
...import_Values.V.staticProperty("moistureSensorActive", {
|
|
326
|
+
...import_safe.ValueMetadata.ReadOnlyBoolean,
|
|
327
|
+
label: "Moisture sensor attached and active"
|
|
328
|
+
}),
|
|
329
|
+
...import_Values.V.staticProperty("moistureSensorPolarity", {
|
|
330
|
+
...import_safe.ValueMetadata.Number,
|
|
331
|
+
label: "Moisture sensor polarity",
|
|
332
|
+
min: 0,
|
|
333
|
+
max: 1,
|
|
334
|
+
states: (0, import_safe.enumValuesToMetadataStates)(import_Types.IrrigationSensorPolarity)
|
|
335
|
+
}),
|
|
336
|
+
...import_Values.V.staticProperty("flow", {
|
|
337
|
+
...import_safe.ValueMetadata.ReadOnlyNumber,
|
|
338
|
+
label: "Flow",
|
|
339
|
+
unit: "l/h"
|
|
340
|
+
}),
|
|
341
|
+
...import_Values.V.staticProperty("pressure", {
|
|
342
|
+
...import_safe.ValueMetadata.ReadOnlyNumber,
|
|
343
|
+
label: "Pressure",
|
|
344
|
+
unit: "kPa"
|
|
345
|
+
}),
|
|
346
|
+
...import_Values.V.staticProperty("shutoffDuration", {
|
|
347
|
+
...import_safe.ValueMetadata.ReadOnlyUInt8,
|
|
348
|
+
label: "Remaining shutoff duration",
|
|
349
|
+
unit: "hours"
|
|
350
|
+
}),
|
|
351
|
+
...import_Values.V.staticProperty("errorNotProgrammed", {
|
|
352
|
+
...import_safe.ValueMetadata.ReadOnlyBoolean,
|
|
353
|
+
label: "Error: device not programmed"
|
|
354
|
+
}),
|
|
355
|
+
...import_Values.V.staticProperty("errorEmergencyShutdown", {
|
|
356
|
+
...import_safe.ValueMetadata.ReadOnlyBoolean,
|
|
357
|
+
label: "Error: emergency shutdown"
|
|
358
|
+
}),
|
|
359
|
+
...import_Values.V.staticProperty("errorHighPressure", {
|
|
360
|
+
...import_safe.ValueMetadata.ReadOnlyBoolean,
|
|
361
|
+
label: "Error: high pressure"
|
|
362
|
+
}),
|
|
363
|
+
...import_Values.V.staticProperty("highPressureThreshold", {
|
|
364
|
+
...import_safe.ValueMetadata.Number,
|
|
365
|
+
label: "High pressure threshold",
|
|
366
|
+
unit: "kPa"
|
|
367
|
+
}),
|
|
368
|
+
...import_Values.V.staticProperty("errorLowPressure", {
|
|
369
|
+
...import_safe.ValueMetadata.ReadOnlyBoolean,
|
|
370
|
+
label: "Error: low pressure"
|
|
371
|
+
}),
|
|
372
|
+
...import_Values.V.staticProperty("lowPressureThreshold", {
|
|
373
|
+
...import_safe.ValueMetadata.Number,
|
|
374
|
+
label: "Low pressure threshold",
|
|
375
|
+
unit: "kPa"
|
|
376
|
+
}),
|
|
377
|
+
...import_Values.V.staticProperty("errorValve", {
|
|
378
|
+
...import_safe.ValueMetadata.ReadOnlyBoolean,
|
|
379
|
+
label: "Error: valve reporting error"
|
|
380
|
+
}),
|
|
381
|
+
...import_Values.V.staticProperty("masterValveOpen", {
|
|
382
|
+
...import_safe.ValueMetadata.ReadOnlyBoolean,
|
|
383
|
+
label: "Master valve is open"
|
|
384
|
+
}),
|
|
385
|
+
...import_Values.V.staticProperty("firstOpenZoneId", {
|
|
386
|
+
...import_safe.ValueMetadata.ReadOnlyNumber,
|
|
387
|
+
label: "First open zone valve ID"
|
|
388
|
+
}),
|
|
389
|
+
...import_Values.V.staticPropertyWithName("shutoffSystem", "shutoff", {
|
|
390
|
+
...import_safe.ValueMetadata.WriteOnlyBoolean,
|
|
391
|
+
label: `Shutoff system`,
|
|
392
|
+
states: {
|
|
393
|
+
true: "Shutoff"
|
|
394
|
+
}
|
|
395
|
+
})
|
|
396
|
+
}),
|
|
397
|
+
...import_Values.V.defineDynamicCCValues(import_safe.CommandClasses.Irrigation, {
|
|
398
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("valveConnected", (valveId) => valveId, "valveConnected", ({ property, propertyKey }) => (typeof property === "number" || property === "master") && propertyKey === "valveConnected", (valveId) => ({
|
|
399
|
+
...import_safe.ValueMetadata.ReadOnlyBoolean,
|
|
400
|
+
label: `${valveIdToMetadataPrefix(valveId)}: Connected`
|
|
401
|
+
})),
|
|
402
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("nominalCurrent", (valveId) => valveId, "nominalCurrent", ({ property, propertyKey }) => (typeof property === "number" || property === "master") && propertyKey === "nominalCurrent", (valveId) => ({
|
|
403
|
+
...import_safe.ValueMetadata.ReadOnlyBoolean,
|
|
404
|
+
label: `${valveIdToMetadataPrefix(valveId)}: Nominal current`,
|
|
405
|
+
unit: "mA"
|
|
406
|
+
})),
|
|
407
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("nominalCurrentHighThreshold", (valveId) => valveId, "nominalCurrentHighThreshold", ({ property, propertyKey }) => (typeof property === "number" || property === "master") && propertyKey === "nominalCurrentHighThreshold", (valveId) => ({
|
|
408
|
+
...import_safe.ValueMetadata.Number,
|
|
409
|
+
label: `${valveIdToMetadataPrefix(valveId)}: Nominal current - high threshold`,
|
|
410
|
+
min: 0,
|
|
411
|
+
max: 2550,
|
|
412
|
+
unit: "mA"
|
|
413
|
+
})),
|
|
414
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("nominalCurrentLowThreshold", (valveId) => valveId, "nominalCurrentLowThreshold", ({ property, propertyKey }) => (typeof property === "number" || property === "master") && propertyKey === "nominalCurrentLowThreshold", (valveId) => ({
|
|
415
|
+
...import_safe.ValueMetadata.Number,
|
|
416
|
+
label: `${valveIdToMetadataPrefix(valveId)}: Nominal current - low threshold`,
|
|
417
|
+
min: 0,
|
|
418
|
+
max: 2550,
|
|
419
|
+
unit: "mA"
|
|
420
|
+
})),
|
|
421
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("errorShortCircuit", (valveId) => valveId, "errorShortCircuit", ({ property, propertyKey }) => (typeof property === "number" || property === "master") && propertyKey === "errorShortCircuit", (valveId) => ({
|
|
422
|
+
...import_safe.ValueMetadata.ReadOnlyBoolean,
|
|
423
|
+
label: `${valveIdToMetadataPrefix(valveId)}: Error - Short circuit detected`
|
|
424
|
+
})),
|
|
425
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("errorHighCurrent", (valveId) => valveId, "errorHighCurrent", ({ property, propertyKey }) => (typeof property === "number" || property === "master") && propertyKey === "errorHighCurrent", (valveId) => ({
|
|
426
|
+
...import_safe.ValueMetadata.ReadOnlyBoolean,
|
|
427
|
+
label: `${valveIdToMetadataPrefix(valveId)}: Error - Current above high threshold`
|
|
428
|
+
})),
|
|
429
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("errorLowCurrent", (valveId) => valveId, "errorLowCurrent", ({ property, propertyKey }) => (typeof property === "number" || property === "master") && propertyKey === "errorLowCurrent", (valveId) => ({
|
|
430
|
+
...import_safe.ValueMetadata.ReadOnlyBoolean,
|
|
431
|
+
label: `${valveIdToMetadataPrefix(valveId)}: Error - Current below low threshold`
|
|
432
|
+
})),
|
|
433
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("maximumFlow", (valveId) => valveId, "maximumFlow", ({ property, propertyKey }) => (typeof property === "number" || property === "master") && propertyKey === "maximumFlow", (valveId) => ({
|
|
434
|
+
...import_safe.ValueMetadata.Number,
|
|
435
|
+
label: `${valveIdToMetadataPrefix(valveId)}: Maximum flow`,
|
|
436
|
+
min: 0,
|
|
437
|
+
unit: "l/h"
|
|
438
|
+
})),
|
|
439
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("errorMaximumFlow", (valveId) => valveId, "errorMaximumFlow", ({ property, propertyKey }) => (typeof property === "number" || property === "master") && propertyKey === "errorMaximumFlow", (valveId) => ({
|
|
440
|
+
...import_safe.ValueMetadata.ReadOnlyBoolean,
|
|
441
|
+
label: `${valveIdToMetadataPrefix(valveId)}: Error - Maximum flow detected`
|
|
442
|
+
})),
|
|
443
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("highFlowThreshold", (valveId) => valveId, "highFlowThreshold", ({ property, propertyKey }) => (typeof property === "number" || property === "master") && propertyKey === "highFlowThreshold", (valveId) => ({
|
|
444
|
+
...import_safe.ValueMetadata.Number,
|
|
445
|
+
label: `${valveIdToMetadataPrefix(valveId)}: High flow threshold`,
|
|
446
|
+
min: 0,
|
|
447
|
+
unit: "l/h"
|
|
448
|
+
})),
|
|
449
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("errorHighFlow", (valveId) => valveId, "errorHighFlow", ({ property, propertyKey }) => (typeof property === "number" || property === "master") && propertyKey === "errorHighFlow", (valveId) => ({
|
|
450
|
+
...import_safe.ValueMetadata.ReadOnlyBoolean,
|
|
451
|
+
label: `${valveIdToMetadataPrefix(valveId)}: Error - Flow above high threshold`
|
|
452
|
+
})),
|
|
453
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("lowFlowThreshold", (valveId) => valveId, "lowFlowThreshold", ({ property, propertyKey }) => (typeof property === "number" || property === "master") && propertyKey === "lowFlowThreshold", (valveId) => ({
|
|
454
|
+
...import_safe.ValueMetadata.Number,
|
|
455
|
+
label: `${valveIdToMetadataPrefix(valveId)}: Low flow threshold`,
|
|
456
|
+
min: 0,
|
|
457
|
+
unit: "l/h"
|
|
458
|
+
})),
|
|
459
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("errorLowFlow", (valveId) => valveId, "errorLowFlow", ({ property, propertyKey }) => (typeof property === "number" || property === "master") && propertyKey === "errorLowFlow", (valveId) => ({
|
|
460
|
+
...import_safe.ValueMetadata.ReadOnlyBoolean,
|
|
461
|
+
label: `${valveIdToMetadataPrefix(valveId)}: Error - Flow below high threshold`
|
|
462
|
+
})),
|
|
463
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("useRainSensor", (valveId) => valveId, "useRainSensor", ({ property, propertyKey }) => (typeof property === "number" || property === "master") && propertyKey === "useRainSensor", (valveId) => ({
|
|
464
|
+
...import_safe.ValueMetadata.Boolean,
|
|
465
|
+
label: `${valveIdToMetadataPrefix(valveId)}: Use rain sensor`
|
|
466
|
+
})),
|
|
467
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("useMoistureSensor", (valveId) => valveId, "useMoistureSensor", ({ property, propertyKey }) => (typeof property === "number" || property === "master") && propertyKey === "useMoistureSensor", (valveId) => ({
|
|
468
|
+
...import_safe.ValueMetadata.Boolean,
|
|
469
|
+
label: `${valveIdToMetadataPrefix(valveId)}: Use moisture sensor`
|
|
470
|
+
})),
|
|
471
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("valveRunDuration", (valveId) => valveId, "duration", ({ property, propertyKey }) => (typeof property === "number" || property === "master") && propertyKey === "duration", (valveId) => ({
|
|
472
|
+
...import_safe.ValueMetadata.UInt16,
|
|
473
|
+
label: `${valveIdToMetadataPrefix(valveId)}: Run duration`,
|
|
474
|
+
min: 1,
|
|
475
|
+
unit: "s"
|
|
476
|
+
})),
|
|
477
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("valveRunStartStop", (valveId) => valveId, "startStop", ({ property, propertyKey }) => (typeof property === "number" || property === "master") && propertyKey === "startStop", (valveId) => ({
|
|
478
|
+
...import_safe.ValueMetadata.Boolean,
|
|
479
|
+
label: `${valveIdToMetadataPrefix(valveId)}: Start/Stop`,
|
|
480
|
+
states: {
|
|
481
|
+
true: "Start",
|
|
482
|
+
false: "Stop"
|
|
483
|
+
}
|
|
484
|
+
}))
|
|
485
|
+
})
|
|
486
|
+
});
|
|
487
|
+
function valveIdToMetadataPrefix(valveId) {
|
|
488
|
+
if (valveId === "master")
|
|
489
|
+
return "Master valve";
|
|
490
|
+
return `Valve ${(0, import_strings.padStart)(valveId.toString(), 3, "0")}`;
|
|
491
|
+
}
|
|
492
|
+
const systemConfigProperties = [
|
|
493
|
+
"masterValveDelay",
|
|
494
|
+
"highPressureThreshold",
|
|
495
|
+
"lowPressureThreshold",
|
|
496
|
+
"rainSensorPolarity",
|
|
497
|
+
"moistureSensorPolarity"
|
|
498
|
+
];
|
|
499
|
+
const valveConfigPropertyKeys = [
|
|
500
|
+
"nominalCurrentHighThreshold",
|
|
501
|
+
"nominalCurrentLowThreshold",
|
|
502
|
+
"maximumFlow",
|
|
503
|
+
"highFlowThreshold",
|
|
504
|
+
"lowFlowThreshold",
|
|
505
|
+
"useRainSensor",
|
|
506
|
+
"useMoistureSensor"
|
|
507
|
+
];
|
|
508
|
+
let IrrigationCCAPI = (() => {
|
|
509
|
+
let _classDecorators = [(0, import_CommandClassDecorators.API)(import_safe.CommandClasses.Irrigation)];
|
|
510
|
+
let _classDescriptor;
|
|
511
|
+
let _classExtraInitializers = [];
|
|
512
|
+
let _classThis;
|
|
513
|
+
let _classSuper = import_API.CCAPI;
|
|
514
|
+
var IrrigationCCAPI2 = class extends _classSuper {
|
|
515
|
+
static {
|
|
516
|
+
_classThis = this;
|
|
517
|
+
}
|
|
518
|
+
static {
|
|
519
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
520
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
521
|
+
IrrigationCCAPI2 = _classThis = _classDescriptor.value;
|
|
522
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
523
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
524
|
+
}
|
|
525
|
+
supportsCommand(cmd) {
|
|
526
|
+
switch (cmd) {
|
|
527
|
+
case import_Types.IrrigationCommand.SystemInfoGet:
|
|
528
|
+
case import_Types.IrrigationCommand.SystemStatusGet:
|
|
529
|
+
case import_Types.IrrigationCommand.SystemConfigSet:
|
|
530
|
+
case import_Types.IrrigationCommand.SystemConfigGet:
|
|
531
|
+
case import_Types.IrrigationCommand.ValveInfoGet:
|
|
532
|
+
case import_Types.IrrigationCommand.ValveConfigSet:
|
|
533
|
+
case import_Types.IrrigationCommand.ValveConfigGet:
|
|
534
|
+
case import_Types.IrrigationCommand.ValveRun:
|
|
535
|
+
case import_Types.IrrigationCommand.ValveTableSet:
|
|
536
|
+
case import_Types.IrrigationCommand.ValveTableGet:
|
|
537
|
+
case import_Types.IrrigationCommand.ValveTableRun:
|
|
538
|
+
case import_Types.IrrigationCommand.SystemShutoff:
|
|
539
|
+
return true;
|
|
540
|
+
}
|
|
541
|
+
return super.supportsCommand(cmd);
|
|
542
|
+
}
|
|
543
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
544
|
+
async getSystemInfo() {
|
|
545
|
+
this.assertSupportsCommand(import_Types.IrrigationCommand, import_Types.IrrigationCommand.SystemInfoGet);
|
|
546
|
+
const cc = new IrrigationCCSystemInfoGet({
|
|
547
|
+
nodeId: this.endpoint.nodeId,
|
|
548
|
+
endpointIndex: this.endpoint.index
|
|
549
|
+
});
|
|
550
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
551
|
+
if (response) {
|
|
552
|
+
return (0, import_safe3.pick)(response, [
|
|
553
|
+
"numValves",
|
|
554
|
+
"numValveTables",
|
|
555
|
+
"supportsMasterValve",
|
|
556
|
+
"maxValveTableSize"
|
|
557
|
+
]);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
561
|
+
async getSystemStatus() {
|
|
562
|
+
this.assertSupportsCommand(import_Types.IrrigationCommand, import_Types.IrrigationCommand.SystemStatusGet);
|
|
563
|
+
const cc = new IrrigationCCSystemStatusGet({
|
|
564
|
+
nodeId: this.endpoint.nodeId,
|
|
565
|
+
endpointIndex: this.endpoint.index
|
|
566
|
+
});
|
|
567
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
568
|
+
if (response) {
|
|
569
|
+
return (0, import_safe3.pick)(response, [
|
|
570
|
+
"systemVoltage",
|
|
571
|
+
"flowSensorActive",
|
|
572
|
+
"pressureSensorActive",
|
|
573
|
+
"rainSensorActive",
|
|
574
|
+
"moistureSensorActive",
|
|
575
|
+
"flow",
|
|
576
|
+
"pressure",
|
|
577
|
+
"shutoffDuration",
|
|
578
|
+
"errorNotProgrammed",
|
|
579
|
+
"errorEmergencyShutdown",
|
|
580
|
+
"errorHighPressure",
|
|
581
|
+
"errorLowPressure",
|
|
582
|
+
"errorValve",
|
|
583
|
+
"masterValveOpen",
|
|
584
|
+
"firstOpenZoneId"
|
|
585
|
+
]);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
589
|
+
async getSystemConfig() {
|
|
590
|
+
this.assertSupportsCommand(import_Types.IrrigationCommand, import_Types.IrrigationCommand.SystemConfigGet);
|
|
591
|
+
const cc = new IrrigationCCSystemConfigGet({
|
|
592
|
+
nodeId: this.endpoint.nodeId,
|
|
593
|
+
endpointIndex: this.endpoint.index
|
|
594
|
+
});
|
|
595
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
596
|
+
if (response) {
|
|
597
|
+
return (0, import_safe3.pick)(response, [
|
|
598
|
+
"masterValveDelay",
|
|
599
|
+
"highPressureThreshold",
|
|
600
|
+
"lowPressureThreshold",
|
|
601
|
+
"rainSensorPolarity",
|
|
602
|
+
"moistureSensorPolarity"
|
|
603
|
+
]);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
async setSystemConfig(config) {
|
|
607
|
+
__assertType("config", "IrrigationCCSystemConfigSetOptions", __assertType__IrrigationCCSystemConfigSetOptions.bind(void 0, config));
|
|
608
|
+
this.assertSupportsCommand(import_Types.IrrigationCommand, import_Types.IrrigationCommand.SystemConfigSet);
|
|
609
|
+
const cc = new IrrigationCCSystemConfigSet({
|
|
610
|
+
nodeId: this.endpoint.nodeId,
|
|
611
|
+
endpointIndex: this.endpoint.index,
|
|
612
|
+
...config
|
|
613
|
+
});
|
|
614
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
615
|
+
}
|
|
616
|
+
async getValveInfo(valveId) {
|
|
617
|
+
__assertType("valveId", "ValveId", __assertType__ValveId.bind(void 0, valveId));
|
|
618
|
+
this.assertSupportsCommand(import_Types.IrrigationCommand, import_Types.IrrigationCommand.ValveInfoGet);
|
|
619
|
+
const cc = new IrrigationCCValveInfoGet({
|
|
620
|
+
nodeId: this.endpoint.nodeId,
|
|
621
|
+
endpointIndex: this.endpoint.index,
|
|
622
|
+
valveId
|
|
623
|
+
});
|
|
624
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
625
|
+
if (response) {
|
|
626
|
+
return (0, import_safe3.pick)(response, [
|
|
627
|
+
"connected",
|
|
628
|
+
"nominalCurrent",
|
|
629
|
+
"errorShortCircuit",
|
|
630
|
+
"errorHighCurrent",
|
|
631
|
+
"errorLowCurrent",
|
|
632
|
+
"errorMaximumFlow",
|
|
633
|
+
"errorHighFlow",
|
|
634
|
+
"errorLowFlow"
|
|
635
|
+
]);
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
async setValveConfig(options) {
|
|
639
|
+
__assertType("options", "IrrigationCCValveConfigSetOptions", __assertType__IrrigationCCValveConfigSetOptions.bind(void 0, options));
|
|
640
|
+
this.assertSupportsCommand(import_Types.IrrigationCommand, import_Types.IrrigationCommand.ValveConfigSet);
|
|
641
|
+
const cc = new IrrigationCCValveConfigSet({
|
|
642
|
+
nodeId: this.endpoint.nodeId,
|
|
643
|
+
endpointIndex: this.endpoint.index,
|
|
644
|
+
...options
|
|
645
|
+
});
|
|
646
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
647
|
+
}
|
|
648
|
+
async getValveConfig(valveId) {
|
|
649
|
+
__assertType("valveId", "ValveId", __assertType__ValveId.bind(void 0, valveId));
|
|
650
|
+
this.assertSupportsCommand(import_Types.IrrigationCommand, import_Types.IrrigationCommand.ValveConfigGet);
|
|
651
|
+
const cc = new IrrigationCCValveConfigGet({
|
|
652
|
+
nodeId: this.endpoint.nodeId,
|
|
653
|
+
endpointIndex: this.endpoint.index,
|
|
654
|
+
valveId
|
|
655
|
+
});
|
|
656
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
657
|
+
if (response) {
|
|
658
|
+
return (0, import_safe3.pick)(response, [
|
|
659
|
+
"nominalCurrentHighThreshold",
|
|
660
|
+
"nominalCurrentLowThreshold",
|
|
661
|
+
"maximumFlow",
|
|
662
|
+
"highFlowThreshold",
|
|
663
|
+
"lowFlowThreshold",
|
|
664
|
+
"useRainSensor",
|
|
665
|
+
"useMoistureSensor"
|
|
666
|
+
]);
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
async runValve(valveId, duration) {
|
|
670
|
+
__assertType("valveId", "ValveId", __assertType__ValveId.bind(void 0, valveId));
|
|
671
|
+
__assertType("duration", "number", __assertType__number.bind(void 0, duration));
|
|
672
|
+
this.assertSupportsCommand(import_Types.IrrigationCommand, import_Types.IrrigationCommand.ValveRun);
|
|
673
|
+
const cc = new IrrigationCCValveRun({
|
|
674
|
+
nodeId: this.endpoint.nodeId,
|
|
675
|
+
endpointIndex: this.endpoint.index,
|
|
676
|
+
valveId,
|
|
677
|
+
duration
|
|
678
|
+
});
|
|
679
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
680
|
+
}
|
|
681
|
+
shutoffValve(valveId) {
|
|
682
|
+
__assertType("valveId", "ValveId", __assertType__ValveId.bind(void 0, valveId));
|
|
683
|
+
return this.runValve(valveId, 0);
|
|
684
|
+
}
|
|
685
|
+
async setValveTable(tableId, entries) {
|
|
686
|
+
__assertType("tableId", "number", __assertType__number.bind(void 0, tableId));
|
|
687
|
+
__assertType("entries", void 0, __assertType__sa__2_ea_2.bind(void 0, entries));
|
|
688
|
+
this.assertSupportsCommand(import_Types.IrrigationCommand, import_Types.IrrigationCommand.ValveTableSet);
|
|
689
|
+
if (!this.endpoint.virtual) {
|
|
690
|
+
const maxValveTableSize = IrrigationCC.getMaxValveTableSizeCached(this.host, this.endpoint);
|
|
691
|
+
if (maxValveTableSize != void 0 && entries.length > maxValveTableSize) {
|
|
692
|
+
throw new import_safe.ZWaveError(`The number of valve table entries must not exceed ${maxValveTableSize}.`, import_safe.ZWaveErrorCodes.Argument_Invalid);
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
const cc = new IrrigationCCValveTableSet({
|
|
696
|
+
nodeId: this.endpoint.nodeId,
|
|
697
|
+
endpointIndex: this.endpoint.index,
|
|
698
|
+
tableId,
|
|
699
|
+
entries
|
|
700
|
+
});
|
|
701
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
702
|
+
}
|
|
703
|
+
async getValveTable(tableId) {
|
|
704
|
+
__assertType("tableId", "number", __assertType__number.bind(void 0, tableId));
|
|
705
|
+
this.assertSupportsCommand(import_Types.IrrigationCommand, import_Types.IrrigationCommand.ValveTableGet);
|
|
706
|
+
const cc = new IrrigationCCValveTableGet({
|
|
707
|
+
nodeId: this.endpoint.nodeId,
|
|
708
|
+
endpointIndex: this.endpoint.index,
|
|
709
|
+
tableId
|
|
710
|
+
});
|
|
711
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
712
|
+
if (response) {
|
|
713
|
+
return response?.entries;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
async runTables(tableIDs) {
|
|
717
|
+
__assertType("tableIDs", void 0, __assertType__sa__number_ea_2.bind(void 0, tableIDs));
|
|
718
|
+
this.assertSupportsCommand(import_Types.IrrigationCommand, import_Types.IrrigationCommand.ValveTableRun);
|
|
719
|
+
const cc = new IrrigationCCValveTableRun({
|
|
720
|
+
nodeId: this.endpoint.nodeId,
|
|
721
|
+
endpointIndex: this.endpoint.index,
|
|
722
|
+
tableIDs
|
|
723
|
+
});
|
|
724
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* Shuts off the entire system for the given duration.
|
|
728
|
+
* @param duration Shutoff duration in hours. A value of 255 will shut off the entire system permanently and prevents schedules from running.
|
|
729
|
+
*/
|
|
730
|
+
async shutoffSystem(duration) {
|
|
731
|
+
__assertType("duration", "number", __assertType__number.bind(void 0, duration));
|
|
732
|
+
this.assertSupportsCommand(import_Types.IrrigationCommand, import_Types.IrrigationCommand.SystemShutoff);
|
|
733
|
+
const cc = new IrrigationCCSystemShutoff({
|
|
734
|
+
nodeId: this.endpoint.nodeId,
|
|
735
|
+
endpointIndex: this.endpoint.index,
|
|
736
|
+
duration
|
|
737
|
+
});
|
|
738
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
739
|
+
}
|
|
740
|
+
/** Shuts off the entire system permanently and prevents schedules from running */
|
|
741
|
+
shutoffSystemPermanently() {
|
|
742
|
+
return this.shutoffSystem(255);
|
|
743
|
+
}
|
|
744
|
+
get [import_API.SET_VALUE]() {
|
|
745
|
+
return async function({ property, propertyKey }, value) {
|
|
746
|
+
const valueDB = this.getValueDB();
|
|
747
|
+
if (systemConfigProperties.includes(property)) {
|
|
748
|
+
const options = {};
|
|
749
|
+
for (const prop of systemConfigProperties) {
|
|
750
|
+
if (prop === property)
|
|
751
|
+
continue;
|
|
752
|
+
const valueId = {
|
|
753
|
+
commandClass: this.ccId,
|
|
754
|
+
endpoint: this.endpoint.index,
|
|
755
|
+
property: prop
|
|
756
|
+
};
|
|
757
|
+
const cachedVal = valueDB.getValue(valueId);
|
|
758
|
+
if (cachedVal == void 0) {
|
|
759
|
+
throw new import_safe.ZWaveError(`The "${property}" property cannot be changed before ${prop} is known!`, import_safe.ZWaveErrorCodes.Argument_Invalid);
|
|
760
|
+
}
|
|
761
|
+
options[prop] = cachedVal;
|
|
762
|
+
}
|
|
763
|
+
options[property] = value;
|
|
764
|
+
return this.setSystemConfig(options);
|
|
765
|
+
} else if (property === "shutoff") {
|
|
766
|
+
return this.shutoffSystem(0);
|
|
767
|
+
} else if (property === "master" || typeof property === "number" && property >= 1) {
|
|
768
|
+
if (propertyKey == void 0) {
|
|
769
|
+
(0, import_API.throwMissingPropertyKey)(this.ccId, property);
|
|
770
|
+
}
|
|
771
|
+
if (valveConfigPropertyKeys.includes(propertyKey)) {
|
|
772
|
+
const options = {
|
|
773
|
+
valveId: property
|
|
774
|
+
};
|
|
775
|
+
for (const prop of valveConfigPropertyKeys) {
|
|
776
|
+
if (prop === propertyKey)
|
|
777
|
+
continue;
|
|
778
|
+
const valueId = {
|
|
779
|
+
commandClass: this.ccId,
|
|
780
|
+
endpoint: this.endpoint.index,
|
|
781
|
+
property,
|
|
782
|
+
propertyKey: prop
|
|
783
|
+
};
|
|
784
|
+
const cachedVal = valueDB.getValue(valueId);
|
|
785
|
+
if (cachedVal == void 0) {
|
|
786
|
+
throw new import_safe.ZWaveError(`The "${property}_${propertyKey}" property cannot be changed before ${property}_${prop} is known!`, import_safe.ZWaveErrorCodes.Argument_Invalid);
|
|
787
|
+
}
|
|
788
|
+
options[prop] = cachedVal;
|
|
789
|
+
}
|
|
790
|
+
options[propertyKey] = value;
|
|
791
|
+
return this.setValveConfig(options);
|
|
792
|
+
} else if (propertyKey === "duration") {
|
|
793
|
+
return;
|
|
794
|
+
} else if (propertyKey === "startStop") {
|
|
795
|
+
if (typeof value !== "boolean") {
|
|
796
|
+
(0, import_API.throwWrongValueType)(this.ccId, property, "boolean", typeof value);
|
|
797
|
+
}
|
|
798
|
+
if (value) {
|
|
799
|
+
const duration = valueDB.getValue(IrrigationCCValues.valveRunDuration(property).endpoint(this.endpoint.index));
|
|
800
|
+
if (duration == void 0) {
|
|
801
|
+
throw new import_safe.ZWaveError(`Cannot start a valve run without specifying a duration first!`, import_safe.ZWaveErrorCodes.Argument_Invalid);
|
|
802
|
+
}
|
|
803
|
+
return this.runValve(property, duration);
|
|
804
|
+
} else {
|
|
805
|
+
return this.shutoffValve(property);
|
|
806
|
+
}
|
|
807
|
+
} else {
|
|
808
|
+
(0, import_API.throwUnsupportedPropertyKey)(this.ccId, property, propertyKey);
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
get [import_API.POLL_VALUE]() {
|
|
814
|
+
return async function({ property, propertyKey }) {
|
|
815
|
+
switch (property) {
|
|
816
|
+
case "systemVoltage":
|
|
817
|
+
case "flowSensorActive":
|
|
818
|
+
case "pressureSensorActive":
|
|
819
|
+
case "rainSensorActive":
|
|
820
|
+
case "moistureSensorActive":
|
|
821
|
+
case "flow":
|
|
822
|
+
case "pressure":
|
|
823
|
+
case "shutoffDuration":
|
|
824
|
+
case "errorNotProgrammed":
|
|
825
|
+
case "errorEmergencyShutdown":
|
|
826
|
+
case "errorHighPressure":
|
|
827
|
+
case "errorLowPressure":
|
|
828
|
+
case "errorValve":
|
|
829
|
+
case "masterValveOpen":
|
|
830
|
+
case "firstOpenZoneId":
|
|
831
|
+
return (await this.getSystemStatus())?.[property];
|
|
832
|
+
case "masterValveDelay":
|
|
833
|
+
case "highPressureThreshold":
|
|
834
|
+
case "lowPressureThreshold":
|
|
835
|
+
case "rainSensorPolarity":
|
|
836
|
+
case "moistureSensorPolarity":
|
|
837
|
+
return (await this.getSystemConfig())?.[property];
|
|
838
|
+
}
|
|
839
|
+
if (property === "master" || typeof property === "number" && property >= 1) {
|
|
840
|
+
switch (propertyKey) {
|
|
841
|
+
case "connected":
|
|
842
|
+
case "nominalCurrent":
|
|
843
|
+
case "errorShortCircuit":
|
|
844
|
+
case "errorHighCurrent":
|
|
845
|
+
case "errorLowCurrent":
|
|
846
|
+
case "errorMaximumFlow":
|
|
847
|
+
case "errorHighFlow":
|
|
848
|
+
case "errorLowFlow":
|
|
849
|
+
return (await this.getValveInfo(property))?.[propertyKey];
|
|
850
|
+
case "nominalCurrentHighThreshold":
|
|
851
|
+
case "nominalCurrentLowThreshold":
|
|
852
|
+
case "maximumFlow":
|
|
853
|
+
case "highFlowThreshold":
|
|
854
|
+
case "lowFlowThreshold":
|
|
855
|
+
case "useRainSensor":
|
|
856
|
+
case "useMoistureSensor":
|
|
857
|
+
return (await this.getValveConfig(property))?.[propertyKey];
|
|
858
|
+
case void 0:
|
|
859
|
+
(0, import_API.throwMissingPropertyKey)(this.ccId, property);
|
|
860
|
+
default:
|
|
861
|
+
(0, import_API.throwUnsupportedPropertyKey)(this.ccId, property, propertyKey);
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
(0, import_API.throwUnsupportedProperty)(this.ccId, property);
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
};
|
|
868
|
+
return IrrigationCCAPI2 = _classThis;
|
|
869
|
+
})();
|
|
870
|
+
let IrrigationCC = (() => {
|
|
871
|
+
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses.Irrigation), (0, import_CommandClassDecorators.implementedVersion)(1), (0, import_CommandClassDecorators.ccValues)(IrrigationCCValues)];
|
|
872
|
+
let _classDescriptor;
|
|
873
|
+
let _classExtraInitializers = [];
|
|
874
|
+
let _classThis;
|
|
875
|
+
let _classSuper = import_CommandClass.CommandClass;
|
|
876
|
+
var IrrigationCC2 = class extends _classSuper {
|
|
877
|
+
static {
|
|
878
|
+
_classThis = this;
|
|
879
|
+
}
|
|
880
|
+
static {
|
|
881
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
882
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
883
|
+
IrrigationCC2 = _classThis = _classDescriptor.value;
|
|
884
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
885
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* Returns the maximum number of valve table entries reported by the node.
|
|
889
|
+
* This only works AFTER the node has been interviewed.
|
|
890
|
+
*/
|
|
891
|
+
static getMaxValveTableSizeCached(ctx, endpoint) {
|
|
892
|
+
return ctx.getValueDB(endpoint.nodeId).getValue(IrrigationCCValues.maxValveTableSize.endpoint(endpoint.index));
|
|
893
|
+
}
|
|
894
|
+
/**
|
|
895
|
+
* Returns the number of zone valves reported by the node.
|
|
896
|
+
* This only works AFTER the node has been interviewed.
|
|
897
|
+
*/
|
|
898
|
+
static getNumValvesCached(ctx, endpoint) {
|
|
899
|
+
return ctx.getValueDB(endpoint.nodeId).getValue(IrrigationCCValues.numValves.endpoint(endpoint.index));
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* Returns whether the node supports a master valve
|
|
903
|
+
* This only works AFTER the node has been interviewed.
|
|
904
|
+
*/
|
|
905
|
+
static supportsMasterValveCached(ctx, endpoint) {
|
|
906
|
+
return !!ctx.getValueDB(endpoint.nodeId).getValue(IrrigationCCValues.supportsMasterValve.endpoint(endpoint.index));
|
|
907
|
+
}
|
|
908
|
+
async interview(ctx) {
|
|
909
|
+
const node = this.getNode(ctx);
|
|
910
|
+
const endpoint = this.getEndpoint(ctx);
|
|
911
|
+
const api = import_API.CCAPI.create(import_safe.CommandClasses.Irrigation, ctx, endpoint).withOptions({
|
|
912
|
+
priority: import_safe.MessagePriority.NodeQuery
|
|
913
|
+
});
|
|
914
|
+
ctx.logNode(node.id, {
|
|
915
|
+
endpoint: this.endpointIndex,
|
|
916
|
+
message: `Interviewing ${this.ccName}...`,
|
|
917
|
+
direction: "none"
|
|
918
|
+
});
|
|
919
|
+
ctx.logNode(node.id, {
|
|
920
|
+
endpoint: this.endpointIndex,
|
|
921
|
+
message: "Querying irrigation system info...",
|
|
922
|
+
direction: "outbound"
|
|
923
|
+
});
|
|
924
|
+
const systemInfo = await api.getSystemInfo();
|
|
925
|
+
if (!systemInfo) {
|
|
926
|
+
ctx.logNode(node.id, {
|
|
927
|
+
endpoint: this.endpointIndex,
|
|
928
|
+
message: "Time out while querying irrigation system info, skipping interview...",
|
|
929
|
+
level: "warn"
|
|
930
|
+
});
|
|
931
|
+
return;
|
|
932
|
+
}
|
|
933
|
+
const logMessage = `received irrigation system info:
|
|
934
|
+
supports master valve: ${systemInfo.supportsMasterValve}
|
|
935
|
+
no. of valves: ${systemInfo.numValves}
|
|
936
|
+
no. of valve tables: ${systemInfo.numValveTables}
|
|
937
|
+
max. valve table size: ${systemInfo.maxValveTableSize}`;
|
|
938
|
+
ctx.logNode(node.id, {
|
|
939
|
+
endpoint: this.endpointIndex,
|
|
940
|
+
message: logMessage,
|
|
941
|
+
direction: "inbound"
|
|
942
|
+
});
|
|
943
|
+
for (let i = 1; i <= systemInfo.numValves; i++) {
|
|
944
|
+
this.ensureMetadata(ctx, IrrigationCCValues.valveRunDuration(i));
|
|
945
|
+
this.ensureMetadata(ctx, IrrigationCCValues.valveRunStartStop(i));
|
|
946
|
+
}
|
|
947
|
+
this.ensureMetadata(ctx, IrrigationCCValues.shutoffSystem);
|
|
948
|
+
await this.refreshValues(ctx);
|
|
949
|
+
this.setInterviewComplete(ctx, true);
|
|
950
|
+
}
|
|
951
|
+
async refreshValues(ctx) {
|
|
952
|
+
const node = this.getNode(ctx);
|
|
953
|
+
const endpoint = this.getEndpoint(ctx);
|
|
954
|
+
const api = import_API.CCAPI.create(import_safe.CommandClasses.Irrigation, ctx, endpoint).withOptions({
|
|
955
|
+
priority: import_safe.MessagePriority.NodeQuery
|
|
956
|
+
});
|
|
957
|
+
ctx.logNode(node.id, {
|
|
958
|
+
endpoint: this.endpointIndex,
|
|
959
|
+
message: "Querying irrigation system configuration...",
|
|
960
|
+
direction: "outbound"
|
|
961
|
+
});
|
|
962
|
+
const systemConfig = await api.getSystemConfig();
|
|
963
|
+
if (systemConfig) {
|
|
964
|
+
let logMessage = `received irrigation system configuration:
|
|
965
|
+
master valve delay: ${systemConfig.masterValveDelay} seconds
|
|
966
|
+
high pressure threshold: ${systemConfig.highPressureThreshold} kPa
|
|
967
|
+
low pressure threshold: ${systemConfig.lowPressureThreshold} kPa`;
|
|
968
|
+
if (systemConfig.rainSensorPolarity != void 0) {
|
|
969
|
+
logMessage += `
|
|
970
|
+
rain sensor polarity: ${(0, import_safe3.getEnumMemberName)(import_Types.IrrigationSensorPolarity, systemConfig.rainSensorPolarity)}`;
|
|
971
|
+
}
|
|
972
|
+
if (systemConfig.moistureSensorPolarity != void 0) {
|
|
973
|
+
logMessage += `
|
|
974
|
+
moisture sensor polarity: ${(0, import_safe3.getEnumMemberName)(import_Types.IrrigationSensorPolarity, systemConfig.moistureSensorPolarity)}`;
|
|
975
|
+
}
|
|
976
|
+
ctx.logNode(node.id, {
|
|
977
|
+
endpoint: this.endpointIndex,
|
|
978
|
+
message: logMessage,
|
|
979
|
+
direction: "inbound"
|
|
980
|
+
});
|
|
981
|
+
}
|
|
982
|
+
ctx.logNode(node.id, {
|
|
983
|
+
endpoint: this.endpointIndex,
|
|
984
|
+
message: "Querying irrigation system status...",
|
|
985
|
+
direction: "outbound"
|
|
986
|
+
});
|
|
987
|
+
await api.getSystemStatus();
|
|
988
|
+
if (IrrigationCC2.supportsMasterValveCached(ctx, endpoint)) {
|
|
989
|
+
ctx.logNode(node.id, {
|
|
990
|
+
endpoint: this.endpointIndex,
|
|
991
|
+
message: "Querying master valve configuration...",
|
|
992
|
+
direction: "outbound"
|
|
993
|
+
});
|
|
994
|
+
await api.getValveConfig("master");
|
|
995
|
+
ctx.logNode(node.id, {
|
|
996
|
+
endpoint: this.endpointIndex,
|
|
997
|
+
message: "Querying master valve status...",
|
|
998
|
+
direction: "outbound"
|
|
999
|
+
});
|
|
1000
|
+
await api.getValveInfo("master");
|
|
1001
|
+
}
|
|
1002
|
+
for (let i = 1; i <= (IrrigationCC2.getNumValvesCached(ctx, endpoint) ?? 0); i++) {
|
|
1003
|
+
ctx.logNode(node.id, {
|
|
1004
|
+
endpoint: this.endpointIndex,
|
|
1005
|
+
message: `Querying configuration for valve ${(0, import_strings.padStart)(i.toString(), 3, "0")}...`,
|
|
1006
|
+
direction: "outbound"
|
|
1007
|
+
});
|
|
1008
|
+
await api.getValveConfig(i);
|
|
1009
|
+
ctx.logNode(node.id, {
|
|
1010
|
+
endpoint: this.endpointIndex,
|
|
1011
|
+
message: `Querying status for valve ${(0, import_strings.padStart)(i.toString(), 3, "0")}...`,
|
|
1012
|
+
direction: "outbound"
|
|
1013
|
+
});
|
|
1014
|
+
await api.getValveInfo(i);
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
translateProperty(ctx, property, propertyKey) {
|
|
1018
|
+
if (property === "master") {
|
|
1019
|
+
return "Master valve";
|
|
1020
|
+
} else if (typeof property === "number") {
|
|
1021
|
+
return `Valve ${(0, import_strings.padStart)(property.toString(), 3, "0")}`;
|
|
1022
|
+
}
|
|
1023
|
+
return super.translateProperty(ctx, property, propertyKey);
|
|
1024
|
+
}
|
|
1025
|
+
};
|
|
1026
|
+
return IrrigationCC2 = _classThis;
|
|
1027
|
+
})();
|
|
1028
|
+
let IrrigationCCSystemInfoReport = (() => {
|
|
1029
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.IrrigationCommand.SystemInfoReport), (0, import_CommandClassDecorators.ccValueProperty)("numValves", IrrigationCCValues.numValves), (0, import_CommandClassDecorators.ccValueProperty)("numValveTables", IrrigationCCValues.numValveTables), (0, import_CommandClassDecorators.ccValueProperty)("supportsMasterValve", IrrigationCCValues.supportsMasterValve), (0, import_CommandClassDecorators.ccValueProperty)("maxValveTableSize", IrrigationCCValues.maxValveTableSize)];
|
|
1030
|
+
let _classDescriptor;
|
|
1031
|
+
let _classExtraInitializers = [];
|
|
1032
|
+
let _classThis;
|
|
1033
|
+
let _classSuper = IrrigationCC;
|
|
1034
|
+
var IrrigationCCSystemInfoReport2 = class extends _classSuper {
|
|
1035
|
+
static {
|
|
1036
|
+
_classThis = this;
|
|
1037
|
+
}
|
|
1038
|
+
static {
|
|
1039
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1040
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1041
|
+
IrrigationCCSystemInfoReport2 = _classThis = _classDescriptor.value;
|
|
1042
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1043
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1044
|
+
}
|
|
1045
|
+
constructor(options) {
|
|
1046
|
+
super(options);
|
|
1047
|
+
this.supportsMasterValve = options.supportsMasterValve;
|
|
1048
|
+
this.numValves = options.numValves;
|
|
1049
|
+
this.numValveTables = options.numValveTables;
|
|
1050
|
+
this.maxValveTableSize = options.maxValveTableSize;
|
|
1051
|
+
}
|
|
1052
|
+
static from(raw, ctx) {
|
|
1053
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 4);
|
|
1054
|
+
const supportsMasterValve = !!(raw.payload[0] & 1);
|
|
1055
|
+
const numValves = raw.payload[1];
|
|
1056
|
+
const numValveTables = raw.payload[2];
|
|
1057
|
+
const maxValveTableSize = raw.payload[3] & 15;
|
|
1058
|
+
return new this({
|
|
1059
|
+
nodeId: ctx.sourceNodeId,
|
|
1060
|
+
supportsMasterValve,
|
|
1061
|
+
numValves,
|
|
1062
|
+
numValveTables,
|
|
1063
|
+
maxValveTableSize
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1066
|
+
numValves;
|
|
1067
|
+
numValveTables;
|
|
1068
|
+
supportsMasterValve;
|
|
1069
|
+
maxValveTableSize;
|
|
1070
|
+
toLogEntry(ctx) {
|
|
1071
|
+
return {
|
|
1072
|
+
...super.toLogEntry(ctx),
|
|
1073
|
+
message: {
|
|
1074
|
+
"supports master valve": this.supportsMasterValve,
|
|
1075
|
+
"no. of valves": this.numValves,
|
|
1076
|
+
"no. of valve tables": this.numValveTables,
|
|
1077
|
+
"max. valve table size": this.maxValveTableSize
|
|
1078
|
+
}
|
|
1079
|
+
};
|
|
1080
|
+
}
|
|
1081
|
+
};
|
|
1082
|
+
return IrrigationCCSystemInfoReport2 = _classThis;
|
|
1083
|
+
})();
|
|
1084
|
+
let IrrigationCCSystemInfoGet = (() => {
|
|
1085
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.IrrigationCommand.SystemInfoGet), (0, import_CommandClassDecorators.expectedCCResponse)(IrrigationCCSystemInfoReport)];
|
|
1086
|
+
let _classDescriptor;
|
|
1087
|
+
let _classExtraInitializers = [];
|
|
1088
|
+
let _classThis;
|
|
1089
|
+
let _classSuper = IrrigationCC;
|
|
1090
|
+
var IrrigationCCSystemInfoGet2 = class extends _classSuper {
|
|
1091
|
+
static {
|
|
1092
|
+
_classThis = this;
|
|
1093
|
+
}
|
|
1094
|
+
static {
|
|
1095
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1096
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1097
|
+
IrrigationCCSystemInfoGet2 = _classThis = _classDescriptor.value;
|
|
1098
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1099
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1100
|
+
}
|
|
1101
|
+
};
|
|
1102
|
+
return IrrigationCCSystemInfoGet2 = _classThis;
|
|
1103
|
+
})();
|
|
1104
|
+
let IrrigationCCSystemStatusReport = (() => {
|
|
1105
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.IrrigationCommand.SystemStatusReport), (0, import_CommandClassDecorators.ccValueProperty)("systemVoltage", IrrigationCCValues.systemVoltage), (0, import_CommandClassDecorators.ccValueProperty)("flowSensorActive", IrrigationCCValues.flowSensorActive), (0, import_CommandClassDecorators.ccValueProperty)("pressureSensorActive", IrrigationCCValues.pressureSensorActive), (0, import_CommandClassDecorators.ccValueProperty)("rainSensorActive", IrrigationCCValues.rainSensorActive), (0, import_CommandClassDecorators.ccValueProperty)("moistureSensorActive", IrrigationCCValues.moistureSensorActive), (0, import_CommandClassDecorators.ccValueProperty)("flow", IrrigationCCValues.flow), (0, import_CommandClassDecorators.ccValueProperty)("pressure", IrrigationCCValues.pressure), (0, import_CommandClassDecorators.ccValueProperty)("shutoffDuration", IrrigationCCValues.shutoffDuration), (0, import_CommandClassDecorators.ccValueProperty)("errorNotProgrammed", IrrigationCCValues.errorNotProgrammed), (0, import_CommandClassDecorators.ccValueProperty)("errorEmergencyShutdown", IrrigationCCValues.errorEmergencyShutdown), (0, import_CommandClassDecorators.ccValueProperty)("errorHighPressure", IrrigationCCValues.errorHighPressure), (0, import_CommandClassDecorators.ccValueProperty)("errorLowPressure", IrrigationCCValues.errorLowPressure), (0, import_CommandClassDecorators.ccValueProperty)("errorValve", IrrigationCCValues.errorValve), (0, import_CommandClassDecorators.ccValueProperty)("masterValveOpen", IrrigationCCValues.masterValveOpen), (0, import_CommandClassDecorators.ccValueProperty)("firstOpenZoneId", IrrigationCCValues.firstOpenZoneId)];
|
|
1106
|
+
let _classDescriptor;
|
|
1107
|
+
let _classExtraInitializers = [];
|
|
1108
|
+
let _classThis;
|
|
1109
|
+
let _classSuper = IrrigationCC;
|
|
1110
|
+
var IrrigationCCSystemStatusReport2 = class extends _classSuper {
|
|
1111
|
+
static {
|
|
1112
|
+
_classThis = this;
|
|
1113
|
+
}
|
|
1114
|
+
static {
|
|
1115
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1116
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1117
|
+
IrrigationCCSystemStatusReport2 = _classThis = _classDescriptor.value;
|
|
1118
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1119
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1120
|
+
}
|
|
1121
|
+
constructor(options) {
|
|
1122
|
+
super(options);
|
|
1123
|
+
this.systemVoltage = options.systemVoltage;
|
|
1124
|
+
this.flowSensorActive = options.flowSensorActive;
|
|
1125
|
+
this.pressureSensorActive = options.pressureSensorActive;
|
|
1126
|
+
this.rainSensorActive = options.rainSensorActive;
|
|
1127
|
+
this.moistureSensorActive = options.moistureSensorActive;
|
|
1128
|
+
this.flow = options.flow;
|
|
1129
|
+
this.pressure = options.pressure;
|
|
1130
|
+
this.shutoffDuration = options.shutoffDuration;
|
|
1131
|
+
this.errorNotProgrammed = options.errorNotProgrammed;
|
|
1132
|
+
this.errorEmergencyShutdown = options.errorEmergencyShutdown;
|
|
1133
|
+
this.errorHighPressure = options.errorHighPressure;
|
|
1134
|
+
this.errorLowPressure = options.errorLowPressure;
|
|
1135
|
+
this.errorValve = options.errorValve;
|
|
1136
|
+
this.masterValveOpen = options.masterValveOpen;
|
|
1137
|
+
this.firstOpenZoneId = options.firstOpenZoneId;
|
|
1138
|
+
}
|
|
1139
|
+
static from(raw, ctx) {
|
|
1140
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 2);
|
|
1141
|
+
const systemVoltage = raw.payload[0];
|
|
1142
|
+
const flowSensorActive = !!(raw.payload[1] & 1);
|
|
1143
|
+
const pressureSensorActive = !!(raw.payload[1] & 2);
|
|
1144
|
+
const rainSensorActive = !!(raw.payload[1] & 4);
|
|
1145
|
+
const moistureSensorActive = !!(raw.payload[1] & 8);
|
|
1146
|
+
let offset = 2;
|
|
1147
|
+
let flow;
|
|
1148
|
+
{
|
|
1149
|
+
const { value, scale, bytesRead } = (0, import_safe.parseFloatWithScale)(raw.payload.subarray(offset));
|
|
1150
|
+
(0, import_safe.validatePayload)(scale === 0);
|
|
1151
|
+
if (flowSensorActive)
|
|
1152
|
+
flow = value;
|
|
1153
|
+
offset += bytesRead;
|
|
1154
|
+
}
|
|
1155
|
+
let pressure;
|
|
1156
|
+
{
|
|
1157
|
+
const { value, scale, bytesRead } = (0, import_safe.parseFloatWithScale)(raw.payload.subarray(offset));
|
|
1158
|
+
(0, import_safe.validatePayload)(scale === 0);
|
|
1159
|
+
if (pressureSensorActive)
|
|
1160
|
+
pressure = value;
|
|
1161
|
+
offset += bytesRead;
|
|
1162
|
+
}
|
|
1163
|
+
(0, import_safe.validatePayload)(raw.payload.length >= offset + 4);
|
|
1164
|
+
const shutoffDuration = raw.payload[offset];
|
|
1165
|
+
const errorNotProgrammed = !!(raw.payload[offset + 1] & 1);
|
|
1166
|
+
const errorEmergencyShutdown = !!(raw.payload[offset + 1] & 2);
|
|
1167
|
+
const errorHighPressure = !!(raw.payload[offset + 1] & 4);
|
|
1168
|
+
const errorLowPressure = !!(raw.payload[offset + 1] & 8);
|
|
1169
|
+
const errorValve = !!(raw.payload[offset + 1] & 16);
|
|
1170
|
+
const masterValveOpen = !!(raw.payload[offset + 2] & 1);
|
|
1171
|
+
let firstOpenZoneId;
|
|
1172
|
+
if (raw.payload[offset + 3]) {
|
|
1173
|
+
firstOpenZoneId = raw.payload[offset + 3];
|
|
1174
|
+
}
|
|
1175
|
+
return new this({
|
|
1176
|
+
nodeId: ctx.sourceNodeId,
|
|
1177
|
+
systemVoltage,
|
|
1178
|
+
flowSensorActive,
|
|
1179
|
+
pressureSensorActive,
|
|
1180
|
+
rainSensorActive,
|
|
1181
|
+
moistureSensorActive,
|
|
1182
|
+
flow,
|
|
1183
|
+
pressure,
|
|
1184
|
+
shutoffDuration,
|
|
1185
|
+
errorNotProgrammed,
|
|
1186
|
+
errorEmergencyShutdown,
|
|
1187
|
+
errorHighPressure,
|
|
1188
|
+
errorLowPressure,
|
|
1189
|
+
errorValve,
|
|
1190
|
+
masterValveOpen,
|
|
1191
|
+
firstOpenZoneId
|
|
1192
|
+
});
|
|
1193
|
+
}
|
|
1194
|
+
systemVoltage;
|
|
1195
|
+
flowSensorActive;
|
|
1196
|
+
pressureSensorActive;
|
|
1197
|
+
rainSensorActive;
|
|
1198
|
+
moistureSensorActive;
|
|
1199
|
+
flow;
|
|
1200
|
+
pressure;
|
|
1201
|
+
shutoffDuration;
|
|
1202
|
+
errorNotProgrammed;
|
|
1203
|
+
errorEmergencyShutdown;
|
|
1204
|
+
errorHighPressure;
|
|
1205
|
+
errorLowPressure;
|
|
1206
|
+
errorValve;
|
|
1207
|
+
masterValveOpen;
|
|
1208
|
+
firstOpenZoneId;
|
|
1209
|
+
toLogEntry(ctx) {
|
|
1210
|
+
const message = {
|
|
1211
|
+
"system voltage": `${this.systemVoltage} V`,
|
|
1212
|
+
"active sensors": [
|
|
1213
|
+
this.flowSensorActive ? "flow" : void 0,
|
|
1214
|
+
this.pressureSensorActive ? "pressure" : void 0,
|
|
1215
|
+
this.rainSensorActive ? "rain" : void 0,
|
|
1216
|
+
this.moistureSensorActive ? "moisture" : void 0
|
|
1217
|
+
].filter(Boolean).join(", ")
|
|
1218
|
+
};
|
|
1219
|
+
if (this.flow != void 0) {
|
|
1220
|
+
message.flow = `${this.flow} l/h`;
|
|
1221
|
+
}
|
|
1222
|
+
if (this.pressure != void 0) {
|
|
1223
|
+
message.pressure = `${this.pressure} kPa`;
|
|
1224
|
+
}
|
|
1225
|
+
message["remaining shutoff duration"] = `${this.shutoffDuration} hours`;
|
|
1226
|
+
message["master valve status"] = this.masterValveOpen ? "open" : "closed";
|
|
1227
|
+
message["first open zone valve"] = this.firstOpenZoneId || "none";
|
|
1228
|
+
const errors = [
|
|
1229
|
+
this.errorNotProgrammed ? "device not programmed" : void 0,
|
|
1230
|
+
this.errorEmergencyShutdown ? "emergency shutdown" : void 0,
|
|
1231
|
+
this.errorHighPressure ? "high pressure threshold triggered" : void 0,
|
|
1232
|
+
this.errorLowPressure ? "low pressure threshold triggered" : void 0,
|
|
1233
|
+
this.errorValve ? "a valve or the master valve has an error" : void 0
|
|
1234
|
+
].filter(Boolean);
|
|
1235
|
+
if (errors.length > 0) {
|
|
1236
|
+
message.errors = errors.map((e) => `
|
|
1237
|
+
\xB7 ${e}`).join("");
|
|
1238
|
+
}
|
|
1239
|
+
return {
|
|
1240
|
+
...super.toLogEntry(ctx),
|
|
1241
|
+
message
|
|
1242
|
+
};
|
|
1243
|
+
}
|
|
1244
|
+
};
|
|
1245
|
+
return IrrigationCCSystemStatusReport2 = _classThis;
|
|
1246
|
+
})();
|
|
1247
|
+
let IrrigationCCSystemStatusGet = (() => {
|
|
1248
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.IrrigationCommand.SystemStatusGet), (0, import_CommandClassDecorators.expectedCCResponse)(IrrigationCCSystemStatusReport)];
|
|
1249
|
+
let _classDescriptor;
|
|
1250
|
+
let _classExtraInitializers = [];
|
|
1251
|
+
let _classThis;
|
|
1252
|
+
let _classSuper = IrrigationCC;
|
|
1253
|
+
var IrrigationCCSystemStatusGet2 = class extends _classSuper {
|
|
1254
|
+
static {
|
|
1255
|
+
_classThis = this;
|
|
1256
|
+
}
|
|
1257
|
+
static {
|
|
1258
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1259
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1260
|
+
IrrigationCCSystemStatusGet2 = _classThis = _classDescriptor.value;
|
|
1261
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1262
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1263
|
+
}
|
|
1264
|
+
};
|
|
1265
|
+
return IrrigationCCSystemStatusGet2 = _classThis;
|
|
1266
|
+
})();
|
|
1267
|
+
let IrrigationCCSystemConfigSet = (() => {
|
|
1268
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.IrrigationCommand.SystemConfigSet), (0, import_CommandClassDecorators.useSupervision)()];
|
|
1269
|
+
let _classDescriptor;
|
|
1270
|
+
let _classExtraInitializers = [];
|
|
1271
|
+
let _classThis;
|
|
1272
|
+
let _classSuper = IrrigationCC;
|
|
1273
|
+
var IrrigationCCSystemConfigSet2 = class extends _classSuper {
|
|
1274
|
+
static {
|
|
1275
|
+
_classThis = this;
|
|
1276
|
+
}
|
|
1277
|
+
static {
|
|
1278
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1279
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1280
|
+
IrrigationCCSystemConfigSet2 = _classThis = _classDescriptor.value;
|
|
1281
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1282
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1283
|
+
}
|
|
1284
|
+
constructor(options) {
|
|
1285
|
+
super(options);
|
|
1286
|
+
this.masterValveDelay = options.masterValveDelay;
|
|
1287
|
+
this.highPressureThreshold = options.highPressureThreshold;
|
|
1288
|
+
this.lowPressureThreshold = options.lowPressureThreshold;
|
|
1289
|
+
this.rainSensorPolarity = options.rainSensorPolarity;
|
|
1290
|
+
this.moistureSensorPolarity = options.moistureSensorPolarity;
|
|
1291
|
+
}
|
|
1292
|
+
static from(_raw, _ctx) {
|
|
1293
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
1294
|
+
}
|
|
1295
|
+
masterValveDelay;
|
|
1296
|
+
highPressureThreshold;
|
|
1297
|
+
lowPressureThreshold;
|
|
1298
|
+
rainSensorPolarity;
|
|
1299
|
+
moistureSensorPolarity;
|
|
1300
|
+
serialize(ctx) {
|
|
1301
|
+
let polarity = 0;
|
|
1302
|
+
if (this.rainSensorPolarity != void 0)
|
|
1303
|
+
polarity |= 1;
|
|
1304
|
+
if (this.moistureSensorPolarity != void 0)
|
|
1305
|
+
polarity |= 2;
|
|
1306
|
+
if (this.rainSensorPolarity == void 0 && this.moistureSensorPolarity == void 0) {
|
|
1307
|
+
polarity |= 128;
|
|
1308
|
+
}
|
|
1309
|
+
this.payload = import_safe2.Bytes.concat([
|
|
1310
|
+
import_safe2.Bytes.from([this.masterValveDelay]),
|
|
1311
|
+
(0, import_safe.encodeFloatWithScale)(
|
|
1312
|
+
this.highPressureThreshold,
|
|
1313
|
+
0
|
|
1314
|
+
/* kPa */
|
|
1315
|
+
),
|
|
1316
|
+
(0, import_safe.encodeFloatWithScale)(
|
|
1317
|
+
this.lowPressureThreshold,
|
|
1318
|
+
0
|
|
1319
|
+
/* kPa */
|
|
1320
|
+
),
|
|
1321
|
+
import_safe2.Bytes.from([polarity])
|
|
1322
|
+
]);
|
|
1323
|
+
return super.serialize(ctx);
|
|
1324
|
+
}
|
|
1325
|
+
toLogEntry(ctx) {
|
|
1326
|
+
const message = {
|
|
1327
|
+
"master valve delay": `${this.masterValveDelay} s`,
|
|
1328
|
+
"high pressure threshold": `${this.highPressureThreshold} kPa`,
|
|
1329
|
+
"low pressure threshold": `${this.lowPressureThreshold} kPa`
|
|
1330
|
+
};
|
|
1331
|
+
if (this.rainSensorPolarity != void 0) {
|
|
1332
|
+
message["rain sensor polarity"] = (0, import_safe3.getEnumMemberName)(import_Types.IrrigationSensorPolarity, this.rainSensorPolarity);
|
|
1333
|
+
}
|
|
1334
|
+
if (this.moistureSensorPolarity != void 0) {
|
|
1335
|
+
message["moisture sensor polarity"] = (0, import_safe3.getEnumMemberName)(import_Types.IrrigationSensorPolarity, this.moistureSensorPolarity);
|
|
1336
|
+
}
|
|
1337
|
+
return {
|
|
1338
|
+
...super.toLogEntry(ctx),
|
|
1339
|
+
message
|
|
1340
|
+
};
|
|
1341
|
+
}
|
|
1342
|
+
};
|
|
1343
|
+
return IrrigationCCSystemConfigSet2 = _classThis;
|
|
1344
|
+
})();
|
|
1345
|
+
let IrrigationCCSystemConfigReport = (() => {
|
|
1346
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.IrrigationCommand.SystemConfigReport), (0, import_CommandClassDecorators.ccValueProperty)("masterValveDelay", IrrigationCCValues.masterValveDelay), (0, import_CommandClassDecorators.ccValueProperty)("highPressureThreshold", IrrigationCCValues.highPressureThreshold), (0, import_CommandClassDecorators.ccValueProperty)("lowPressureThreshold", IrrigationCCValues.lowPressureThreshold), (0, import_CommandClassDecorators.ccValueProperty)("rainSensorPolarity", IrrigationCCValues.rainSensorPolarity), (0, import_CommandClassDecorators.ccValueProperty)("moistureSensorPolarity", IrrigationCCValues.moistureSensorPolarity)];
|
|
1347
|
+
let _classDescriptor;
|
|
1348
|
+
let _classExtraInitializers = [];
|
|
1349
|
+
let _classThis;
|
|
1350
|
+
let _classSuper = IrrigationCC;
|
|
1351
|
+
var IrrigationCCSystemConfigReport2 = class extends _classSuper {
|
|
1352
|
+
static {
|
|
1353
|
+
_classThis = this;
|
|
1354
|
+
}
|
|
1355
|
+
static {
|
|
1356
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1357
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1358
|
+
IrrigationCCSystemConfigReport2 = _classThis = _classDescriptor.value;
|
|
1359
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1360
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1361
|
+
}
|
|
1362
|
+
constructor(options) {
|
|
1363
|
+
super(options);
|
|
1364
|
+
this.masterValveDelay = options.masterValveDelay;
|
|
1365
|
+
this.highPressureThreshold = options.highPressureThreshold;
|
|
1366
|
+
this.lowPressureThreshold = options.lowPressureThreshold;
|
|
1367
|
+
this.rainSensorPolarity = options.rainSensorPolarity;
|
|
1368
|
+
this.moistureSensorPolarity = options.moistureSensorPolarity;
|
|
1369
|
+
}
|
|
1370
|
+
static from(raw, ctx) {
|
|
1371
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 2);
|
|
1372
|
+
const masterValveDelay = raw.payload[0];
|
|
1373
|
+
let offset = 1;
|
|
1374
|
+
let highPressureThreshold;
|
|
1375
|
+
{
|
|
1376
|
+
const { value, scale, bytesRead } = (0, import_safe.parseFloatWithScale)(raw.payload.subarray(offset));
|
|
1377
|
+
(0, import_safe.validatePayload)(
|
|
1378
|
+
scale === 0
|
|
1379
|
+
/* kPa */
|
|
1380
|
+
);
|
|
1381
|
+
highPressureThreshold = value;
|
|
1382
|
+
offset += bytesRead;
|
|
1383
|
+
}
|
|
1384
|
+
let lowPressureThreshold;
|
|
1385
|
+
{
|
|
1386
|
+
const { value, scale, bytesRead } = (0, import_safe.parseFloatWithScale)(raw.payload.subarray(offset));
|
|
1387
|
+
(0, import_safe.validatePayload)(
|
|
1388
|
+
scale === 0
|
|
1389
|
+
/* kPa */
|
|
1390
|
+
);
|
|
1391
|
+
lowPressureThreshold = value;
|
|
1392
|
+
offset += bytesRead;
|
|
1393
|
+
}
|
|
1394
|
+
(0, import_safe.validatePayload)(raw.payload.length >= offset + 1);
|
|
1395
|
+
const polarity = raw.payload[offset];
|
|
1396
|
+
let rainSensorPolarity;
|
|
1397
|
+
let moistureSensorPolarity;
|
|
1398
|
+
if (!!(polarity & 128)) {
|
|
1399
|
+
rainSensorPolarity = polarity & 1;
|
|
1400
|
+
moistureSensorPolarity = (polarity & 2) >>> 1;
|
|
1401
|
+
}
|
|
1402
|
+
return new this({
|
|
1403
|
+
nodeId: ctx.sourceNodeId,
|
|
1404
|
+
masterValveDelay,
|
|
1405
|
+
highPressureThreshold,
|
|
1406
|
+
lowPressureThreshold,
|
|
1407
|
+
rainSensorPolarity,
|
|
1408
|
+
moistureSensorPolarity
|
|
1409
|
+
});
|
|
1410
|
+
}
|
|
1411
|
+
masterValveDelay;
|
|
1412
|
+
highPressureThreshold;
|
|
1413
|
+
lowPressureThreshold;
|
|
1414
|
+
rainSensorPolarity;
|
|
1415
|
+
moistureSensorPolarity;
|
|
1416
|
+
toLogEntry(ctx) {
|
|
1417
|
+
const message = {
|
|
1418
|
+
"master valve delay": `${this.masterValveDelay} s`,
|
|
1419
|
+
"high pressure threshold": `${this.highPressureThreshold} kPa`,
|
|
1420
|
+
"low pressure threshold": `${this.lowPressureThreshold} kPa`
|
|
1421
|
+
};
|
|
1422
|
+
if (this.rainSensorPolarity != void 0) {
|
|
1423
|
+
message["rain sensor polarity"] = (0, import_safe3.getEnumMemberName)(import_Types.IrrigationSensorPolarity, this.rainSensorPolarity);
|
|
1424
|
+
}
|
|
1425
|
+
if (this.moistureSensorPolarity != void 0) {
|
|
1426
|
+
message["moisture sensor polarity"] = (0, import_safe3.getEnumMemberName)(import_Types.IrrigationSensorPolarity, this.moistureSensorPolarity);
|
|
1427
|
+
}
|
|
1428
|
+
return {
|
|
1429
|
+
...super.toLogEntry(ctx),
|
|
1430
|
+
message
|
|
1431
|
+
};
|
|
1432
|
+
}
|
|
1433
|
+
};
|
|
1434
|
+
return IrrigationCCSystemConfigReport2 = _classThis;
|
|
1435
|
+
})();
|
|
1436
|
+
let IrrigationCCSystemConfigGet = (() => {
|
|
1437
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.IrrigationCommand.SystemConfigGet), (0, import_CommandClassDecorators.expectedCCResponse)(IrrigationCCSystemConfigReport)];
|
|
1438
|
+
let _classDescriptor;
|
|
1439
|
+
let _classExtraInitializers = [];
|
|
1440
|
+
let _classThis;
|
|
1441
|
+
let _classSuper = IrrigationCC;
|
|
1442
|
+
var IrrigationCCSystemConfigGet2 = class extends _classSuper {
|
|
1443
|
+
static {
|
|
1444
|
+
_classThis = this;
|
|
1445
|
+
}
|
|
1446
|
+
static {
|
|
1447
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1448
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1449
|
+
IrrigationCCSystemConfigGet2 = _classThis = _classDescriptor.value;
|
|
1450
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1451
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1452
|
+
}
|
|
1453
|
+
};
|
|
1454
|
+
return IrrigationCCSystemConfigGet2 = _classThis;
|
|
1455
|
+
})();
|
|
1456
|
+
let IrrigationCCValveInfoReport = (() => {
|
|
1457
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.IrrigationCommand.ValveInfoReport)];
|
|
1458
|
+
let _classDescriptor;
|
|
1459
|
+
let _classExtraInitializers = [];
|
|
1460
|
+
let _classThis;
|
|
1461
|
+
let _classSuper = IrrigationCC;
|
|
1462
|
+
var IrrigationCCValveInfoReport2 = class extends _classSuper {
|
|
1463
|
+
static {
|
|
1464
|
+
_classThis = this;
|
|
1465
|
+
}
|
|
1466
|
+
static {
|
|
1467
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1468
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1469
|
+
IrrigationCCValveInfoReport2 = _classThis = _classDescriptor.value;
|
|
1470
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1471
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1472
|
+
}
|
|
1473
|
+
constructor(options) {
|
|
1474
|
+
super(options);
|
|
1475
|
+
this.valveId = options.valveId;
|
|
1476
|
+
this.connected = options.connected;
|
|
1477
|
+
this.nominalCurrent = options.nominalCurrent;
|
|
1478
|
+
this.errorShortCircuit = options.errorShortCircuit;
|
|
1479
|
+
this.errorHighCurrent = options.errorHighCurrent;
|
|
1480
|
+
this.errorLowCurrent = options.errorLowCurrent;
|
|
1481
|
+
this.errorMaximumFlow = options.errorMaximumFlow;
|
|
1482
|
+
this.errorHighFlow = options.errorHighFlow;
|
|
1483
|
+
this.errorLowFlow = options.errorLowFlow;
|
|
1484
|
+
}
|
|
1485
|
+
static from(raw, ctx) {
|
|
1486
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 4);
|
|
1487
|
+
let valveId;
|
|
1488
|
+
if ((raw.payload[0] & 1) === import_Types.ValveType.MasterValve) {
|
|
1489
|
+
valveId = "master";
|
|
1490
|
+
} else {
|
|
1491
|
+
valveId = raw.payload[1];
|
|
1492
|
+
}
|
|
1493
|
+
const connected = !!(raw.payload[0] & 2);
|
|
1494
|
+
const nominalCurrent = 10 * raw.payload[2];
|
|
1495
|
+
const errorShortCircuit = !!(raw.payload[3] & 1);
|
|
1496
|
+
const errorHighCurrent = !!(raw.payload[3] & 2);
|
|
1497
|
+
const errorLowCurrent = !!(raw.payload[3] & 4);
|
|
1498
|
+
let errorMaximumFlow;
|
|
1499
|
+
let errorHighFlow;
|
|
1500
|
+
let errorLowFlow;
|
|
1501
|
+
if (valveId === "master") {
|
|
1502
|
+
errorMaximumFlow = !!(raw.payload[3] & 8);
|
|
1503
|
+
errorHighFlow = !!(raw.payload[3] & 16);
|
|
1504
|
+
errorLowFlow = !!(raw.payload[3] & 32);
|
|
1505
|
+
}
|
|
1506
|
+
return new this({
|
|
1507
|
+
nodeId: ctx.sourceNodeId,
|
|
1508
|
+
valveId,
|
|
1509
|
+
connected,
|
|
1510
|
+
nominalCurrent,
|
|
1511
|
+
errorShortCircuit,
|
|
1512
|
+
errorHighCurrent,
|
|
1513
|
+
errorLowCurrent,
|
|
1514
|
+
errorMaximumFlow,
|
|
1515
|
+
errorHighFlow,
|
|
1516
|
+
errorLowFlow
|
|
1517
|
+
});
|
|
1518
|
+
}
|
|
1519
|
+
valveId;
|
|
1520
|
+
connected;
|
|
1521
|
+
nominalCurrent;
|
|
1522
|
+
errorShortCircuit;
|
|
1523
|
+
errorHighCurrent;
|
|
1524
|
+
errorLowCurrent;
|
|
1525
|
+
errorMaximumFlow;
|
|
1526
|
+
errorHighFlow;
|
|
1527
|
+
errorLowFlow;
|
|
1528
|
+
persistValues(ctx) {
|
|
1529
|
+
if (!super.persistValues(ctx))
|
|
1530
|
+
return false;
|
|
1531
|
+
const valveConnectedValue = IrrigationCCValues.valveConnected(this.valveId);
|
|
1532
|
+
this.ensureMetadata(ctx, valveConnectedValue);
|
|
1533
|
+
this.setValue(ctx, valveConnectedValue, this.connected);
|
|
1534
|
+
const nominalCurrentValue = IrrigationCCValues.nominalCurrent(this.valveId);
|
|
1535
|
+
this.ensureMetadata(ctx, nominalCurrentValue);
|
|
1536
|
+
this.setValue(ctx, nominalCurrentValue, this.nominalCurrent);
|
|
1537
|
+
const errorShortCircuitValue = IrrigationCCValues.errorShortCircuit(this.valveId);
|
|
1538
|
+
this.ensureMetadata(ctx, errorShortCircuitValue);
|
|
1539
|
+
this.setValue(ctx, errorShortCircuitValue, this.errorShortCircuit);
|
|
1540
|
+
const errorHighCurrentValue = IrrigationCCValues.errorHighCurrent(this.valveId);
|
|
1541
|
+
this.ensureMetadata(ctx, errorHighCurrentValue);
|
|
1542
|
+
this.setValue(ctx, errorHighCurrentValue, this.errorHighCurrent);
|
|
1543
|
+
const errorLowCurrentValue = IrrigationCCValues.errorLowCurrent(this.valveId);
|
|
1544
|
+
this.ensureMetadata(ctx, errorLowCurrentValue);
|
|
1545
|
+
this.setValue(ctx, errorLowCurrentValue, this.errorLowCurrent);
|
|
1546
|
+
if (this.errorMaximumFlow != void 0) {
|
|
1547
|
+
const errorMaximumFlowValue = IrrigationCCValues.errorMaximumFlow(this.valveId);
|
|
1548
|
+
this.ensureMetadata(ctx, errorMaximumFlowValue);
|
|
1549
|
+
this.setValue(ctx, errorMaximumFlowValue, this.errorMaximumFlow);
|
|
1550
|
+
}
|
|
1551
|
+
if (this.errorHighFlow != void 0) {
|
|
1552
|
+
const errorHighFlowValue = IrrigationCCValues.errorHighFlow(this.valveId);
|
|
1553
|
+
this.ensureMetadata(ctx, errorHighFlowValue);
|
|
1554
|
+
this.setValue(ctx, errorHighFlowValue, this.errorHighFlow);
|
|
1555
|
+
}
|
|
1556
|
+
if (this.errorLowFlow != void 0) {
|
|
1557
|
+
const errorLowFlowValue = IrrigationCCValues.errorLowFlow(this.valveId);
|
|
1558
|
+
this.ensureMetadata(ctx, errorLowFlowValue);
|
|
1559
|
+
this.setValue(ctx, errorLowFlowValue, this.errorLowFlow);
|
|
1560
|
+
}
|
|
1561
|
+
return true;
|
|
1562
|
+
}
|
|
1563
|
+
toLogEntry(ctx) {
|
|
1564
|
+
const message = {
|
|
1565
|
+
"valve ID": this.valveId,
|
|
1566
|
+
connected: this.connected,
|
|
1567
|
+
"nominal current": `${this.nominalCurrent} mA`
|
|
1568
|
+
};
|
|
1569
|
+
const errors = [
|
|
1570
|
+
this.errorShortCircuit ? "short circuit" : void 0,
|
|
1571
|
+
this.errorHighCurrent ? "current above high threshold" : void 0,
|
|
1572
|
+
this.errorLowCurrent ? "current below low threshold" : void 0,
|
|
1573
|
+
this.errorMaximumFlow ? "maximum flow" : void 0,
|
|
1574
|
+
this.errorHighFlow ? "flow above high threshold" : void 0,
|
|
1575
|
+
this.errorLowFlow ? "flow below low threshold" : void 0
|
|
1576
|
+
].filter(Boolean);
|
|
1577
|
+
if (errors.length > 0) {
|
|
1578
|
+
message.errors = errors.map((e) => `
|
|
1579
|
+
\xB7 ${e}`).join("");
|
|
1580
|
+
}
|
|
1581
|
+
return {
|
|
1582
|
+
...super.toLogEntry(ctx),
|
|
1583
|
+
message
|
|
1584
|
+
};
|
|
1585
|
+
}
|
|
1586
|
+
};
|
|
1587
|
+
return IrrigationCCValveInfoReport2 = _classThis;
|
|
1588
|
+
})();
|
|
1589
|
+
function testResponseForIrrigationCommandWithValveId(sent, received) {
|
|
1590
|
+
return received.valveId === sent.valveId;
|
|
1591
|
+
}
|
|
1592
|
+
let IrrigationCCValveInfoGet = (() => {
|
|
1593
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.IrrigationCommand.ValveInfoGet), (0, import_CommandClassDecorators.expectedCCResponse)(IrrigationCCValveInfoReport, testResponseForIrrigationCommandWithValveId)];
|
|
1594
|
+
let _classDescriptor;
|
|
1595
|
+
let _classExtraInitializers = [];
|
|
1596
|
+
let _classThis;
|
|
1597
|
+
let _classSuper = IrrigationCC;
|
|
1598
|
+
var IrrigationCCValveInfoGet2 = class extends _classSuper {
|
|
1599
|
+
static {
|
|
1600
|
+
_classThis = this;
|
|
1601
|
+
}
|
|
1602
|
+
static {
|
|
1603
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1604
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1605
|
+
IrrigationCCValveInfoGet2 = _classThis = _classDescriptor.value;
|
|
1606
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1607
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1608
|
+
}
|
|
1609
|
+
constructor(options) {
|
|
1610
|
+
super(options);
|
|
1611
|
+
this.valveId = options.valveId;
|
|
1612
|
+
}
|
|
1613
|
+
static from(_raw, _ctx) {
|
|
1614
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
1615
|
+
}
|
|
1616
|
+
valveId;
|
|
1617
|
+
serialize(ctx) {
|
|
1618
|
+
this.payload = import_safe2.Bytes.from([
|
|
1619
|
+
this.valveId === "master" ? 1 : 0,
|
|
1620
|
+
this.valveId === "master" ? 1 : this.valveId || 1
|
|
1621
|
+
]);
|
|
1622
|
+
return super.serialize(ctx);
|
|
1623
|
+
}
|
|
1624
|
+
toLogEntry(ctx) {
|
|
1625
|
+
return {
|
|
1626
|
+
...super.toLogEntry(ctx),
|
|
1627
|
+
message: {
|
|
1628
|
+
"valve ID": this.valveId
|
|
1629
|
+
}
|
|
1630
|
+
};
|
|
1631
|
+
}
|
|
1632
|
+
};
|
|
1633
|
+
return IrrigationCCValveInfoGet2 = _classThis;
|
|
1634
|
+
})();
|
|
1635
|
+
let IrrigationCCValveConfigSet = (() => {
|
|
1636
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.IrrigationCommand.ValveConfigSet), (0, import_CommandClassDecorators.useSupervision)()];
|
|
1637
|
+
let _classDescriptor;
|
|
1638
|
+
let _classExtraInitializers = [];
|
|
1639
|
+
let _classThis;
|
|
1640
|
+
let _classSuper = IrrigationCC;
|
|
1641
|
+
var IrrigationCCValveConfigSet2 = class extends _classSuper {
|
|
1642
|
+
static {
|
|
1643
|
+
_classThis = this;
|
|
1644
|
+
}
|
|
1645
|
+
static {
|
|
1646
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1647
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1648
|
+
IrrigationCCValveConfigSet2 = _classThis = _classDescriptor.value;
|
|
1649
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1650
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1651
|
+
}
|
|
1652
|
+
constructor(options) {
|
|
1653
|
+
super(options);
|
|
1654
|
+
this.valveId = options.valveId;
|
|
1655
|
+
this.nominalCurrentHighThreshold = options.nominalCurrentHighThreshold;
|
|
1656
|
+
this.nominalCurrentLowThreshold = options.nominalCurrentLowThreshold;
|
|
1657
|
+
this.maximumFlow = options.maximumFlow;
|
|
1658
|
+
this.highFlowThreshold = options.highFlowThreshold;
|
|
1659
|
+
this.lowFlowThreshold = options.lowFlowThreshold;
|
|
1660
|
+
this.useRainSensor = options.useRainSensor;
|
|
1661
|
+
this.useMoistureSensor = options.useMoistureSensor;
|
|
1662
|
+
}
|
|
1663
|
+
static from(_raw, _ctx) {
|
|
1664
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
1665
|
+
}
|
|
1666
|
+
valveId;
|
|
1667
|
+
nominalCurrentHighThreshold;
|
|
1668
|
+
nominalCurrentLowThreshold;
|
|
1669
|
+
maximumFlow;
|
|
1670
|
+
highFlowThreshold;
|
|
1671
|
+
lowFlowThreshold;
|
|
1672
|
+
useRainSensor;
|
|
1673
|
+
useMoistureSensor;
|
|
1674
|
+
serialize(ctx) {
|
|
1675
|
+
this.payload = import_safe2.Bytes.concat([
|
|
1676
|
+
import_safe2.Bytes.from([
|
|
1677
|
+
this.valveId === "master" ? 1 : 0,
|
|
1678
|
+
this.valveId === "master" ? 1 : this.valveId || 1,
|
|
1679
|
+
Math.floor(this.nominalCurrentHighThreshold / 10),
|
|
1680
|
+
Math.floor(this.nominalCurrentLowThreshold / 10)
|
|
1681
|
+
]),
|
|
1682
|
+
(0, import_safe.encodeFloatWithScale)(
|
|
1683
|
+
this.maximumFlow,
|
|
1684
|
+
0
|
|
1685
|
+
/* l/h */
|
|
1686
|
+
),
|
|
1687
|
+
(0, import_safe.encodeFloatWithScale)(
|
|
1688
|
+
this.highFlowThreshold,
|
|
1689
|
+
0
|
|
1690
|
+
/* l/h */
|
|
1691
|
+
),
|
|
1692
|
+
(0, import_safe.encodeFloatWithScale)(
|
|
1693
|
+
this.lowFlowThreshold,
|
|
1694
|
+
0
|
|
1695
|
+
/* l/h */
|
|
1696
|
+
),
|
|
1697
|
+
import_safe2.Bytes.from([
|
|
1698
|
+
(this.useRainSensor ? 1 : 0) | (this.useMoistureSensor ? 2 : 0)
|
|
1699
|
+
])
|
|
1700
|
+
]);
|
|
1701
|
+
return super.serialize(ctx);
|
|
1702
|
+
}
|
|
1703
|
+
toLogEntry(ctx) {
|
|
1704
|
+
return {
|
|
1705
|
+
...super.toLogEntry(ctx),
|
|
1706
|
+
message: {
|
|
1707
|
+
"valve ID": this.valveId,
|
|
1708
|
+
"nominal current high threshold": `${this.nominalCurrentHighThreshold} mA`,
|
|
1709
|
+
"nominal current low threshold": `${this.nominalCurrentLowThreshold} mA`,
|
|
1710
|
+
"maximum flow": `${this.maximumFlow} l/h`,
|
|
1711
|
+
"high flow threshold": `${this.highFlowThreshold} l/h`,
|
|
1712
|
+
"low flow threshold": `${this.lowFlowThreshold} l/h`,
|
|
1713
|
+
"use rain sensor": this.useRainSensor,
|
|
1714
|
+
"use moisture sensor": this.useMoistureSensor
|
|
1715
|
+
}
|
|
1716
|
+
};
|
|
1717
|
+
}
|
|
1718
|
+
};
|
|
1719
|
+
return IrrigationCCValveConfigSet2 = _classThis;
|
|
1720
|
+
})();
|
|
1721
|
+
let IrrigationCCValveConfigReport = (() => {
|
|
1722
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.IrrigationCommand.ValveConfigReport)];
|
|
1723
|
+
let _classDescriptor;
|
|
1724
|
+
let _classExtraInitializers = [];
|
|
1725
|
+
let _classThis;
|
|
1726
|
+
let _classSuper = IrrigationCC;
|
|
1727
|
+
var IrrigationCCValveConfigReport2 = class extends _classSuper {
|
|
1728
|
+
static {
|
|
1729
|
+
_classThis = this;
|
|
1730
|
+
}
|
|
1731
|
+
static {
|
|
1732
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1733
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1734
|
+
IrrigationCCValveConfigReport2 = _classThis = _classDescriptor.value;
|
|
1735
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1736
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1737
|
+
}
|
|
1738
|
+
constructor(options) {
|
|
1739
|
+
super(options);
|
|
1740
|
+
this.valveId = options.valveId;
|
|
1741
|
+
this.nominalCurrentHighThreshold = options.nominalCurrentHighThreshold;
|
|
1742
|
+
this.nominalCurrentLowThreshold = options.nominalCurrentLowThreshold;
|
|
1743
|
+
this.maximumFlow = options.maximumFlow;
|
|
1744
|
+
this.highFlowThreshold = options.highFlowThreshold;
|
|
1745
|
+
this.lowFlowThreshold = options.lowFlowThreshold;
|
|
1746
|
+
this.useRainSensor = options.useRainSensor;
|
|
1747
|
+
this.useMoistureSensor = options.useMoistureSensor;
|
|
1748
|
+
}
|
|
1749
|
+
static from(raw, ctx) {
|
|
1750
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 4);
|
|
1751
|
+
let valveId;
|
|
1752
|
+
if ((raw.payload[0] & 1) === import_Types.ValveType.MasterValve) {
|
|
1753
|
+
valveId = "master";
|
|
1754
|
+
} else {
|
|
1755
|
+
valveId = raw.payload[1];
|
|
1756
|
+
}
|
|
1757
|
+
const nominalCurrentHighThreshold = 10 * raw.payload[2];
|
|
1758
|
+
const nominalCurrentLowThreshold = 10 * raw.payload[3];
|
|
1759
|
+
let offset = 4;
|
|
1760
|
+
let maximumFlow;
|
|
1761
|
+
{
|
|
1762
|
+
const { value, scale, bytesRead } = (0, import_safe.parseFloatWithScale)(raw.payload.subarray(offset));
|
|
1763
|
+
(0, import_safe.validatePayload)(
|
|
1764
|
+
scale === 0
|
|
1765
|
+
/* l/h */
|
|
1766
|
+
);
|
|
1767
|
+
maximumFlow = value;
|
|
1768
|
+
offset += bytesRead;
|
|
1769
|
+
}
|
|
1770
|
+
let highFlowThreshold;
|
|
1771
|
+
{
|
|
1772
|
+
const { value, scale, bytesRead } = (0, import_safe.parseFloatWithScale)(raw.payload.subarray(offset));
|
|
1773
|
+
(0, import_safe.validatePayload)(
|
|
1774
|
+
scale === 0
|
|
1775
|
+
/* l/h */
|
|
1776
|
+
);
|
|
1777
|
+
highFlowThreshold = value;
|
|
1778
|
+
offset += bytesRead;
|
|
1779
|
+
}
|
|
1780
|
+
let lowFlowThreshold;
|
|
1781
|
+
{
|
|
1782
|
+
const { value, scale, bytesRead } = (0, import_safe.parseFloatWithScale)(raw.payload.subarray(offset));
|
|
1783
|
+
(0, import_safe.validatePayload)(
|
|
1784
|
+
scale === 0
|
|
1785
|
+
/* l/h */
|
|
1786
|
+
);
|
|
1787
|
+
lowFlowThreshold = value;
|
|
1788
|
+
offset += bytesRead;
|
|
1789
|
+
}
|
|
1790
|
+
(0, import_safe.validatePayload)(raw.payload.length >= offset + 1);
|
|
1791
|
+
const useRainSensor = !!(raw.payload[offset] & 1);
|
|
1792
|
+
const useMoistureSensor = !!(raw.payload[offset] & 2);
|
|
1793
|
+
return new this({
|
|
1794
|
+
nodeId: ctx.sourceNodeId,
|
|
1795
|
+
valveId,
|
|
1796
|
+
nominalCurrentHighThreshold,
|
|
1797
|
+
nominalCurrentLowThreshold,
|
|
1798
|
+
maximumFlow,
|
|
1799
|
+
highFlowThreshold,
|
|
1800
|
+
lowFlowThreshold,
|
|
1801
|
+
useRainSensor,
|
|
1802
|
+
useMoistureSensor
|
|
1803
|
+
});
|
|
1804
|
+
}
|
|
1805
|
+
persistValues(ctx) {
|
|
1806
|
+
if (!super.persistValues(ctx))
|
|
1807
|
+
return false;
|
|
1808
|
+
const nominalCurrentHighThresholdValue = IrrigationCCValues.nominalCurrentHighThreshold(this.valveId);
|
|
1809
|
+
this.ensureMetadata(ctx, nominalCurrentHighThresholdValue);
|
|
1810
|
+
this.setValue(ctx, nominalCurrentHighThresholdValue, this.nominalCurrentHighThreshold);
|
|
1811
|
+
const nominalCurrentLowThresholdValue = IrrigationCCValues.nominalCurrentLowThreshold(this.valveId);
|
|
1812
|
+
this.ensureMetadata(ctx, nominalCurrentLowThresholdValue);
|
|
1813
|
+
this.setValue(ctx, nominalCurrentLowThresholdValue, this.nominalCurrentLowThreshold);
|
|
1814
|
+
const maximumFlowValue = IrrigationCCValues.maximumFlow(this.valveId);
|
|
1815
|
+
this.ensureMetadata(ctx, maximumFlowValue);
|
|
1816
|
+
this.setValue(ctx, maximumFlowValue, this.maximumFlow);
|
|
1817
|
+
const highFlowThresholdValue = IrrigationCCValues.highFlowThreshold(this.valveId);
|
|
1818
|
+
this.ensureMetadata(ctx, highFlowThresholdValue);
|
|
1819
|
+
this.setValue(ctx, highFlowThresholdValue, this.highFlowThreshold);
|
|
1820
|
+
const lowFlowThresholdValue = IrrigationCCValues.lowFlowThreshold(this.valveId);
|
|
1821
|
+
this.ensureMetadata(ctx, lowFlowThresholdValue);
|
|
1822
|
+
this.setValue(ctx, lowFlowThresholdValue, this.lowFlowThreshold);
|
|
1823
|
+
const useRainSensorValue = IrrigationCCValues.useRainSensor(this.valveId);
|
|
1824
|
+
this.ensureMetadata(ctx, useRainSensorValue);
|
|
1825
|
+
this.setValue(ctx, useRainSensorValue, this.useRainSensor);
|
|
1826
|
+
const useMoistureSensorValue = IrrigationCCValues.useMoistureSensor(this.valveId);
|
|
1827
|
+
this.ensureMetadata(ctx, useMoistureSensorValue);
|
|
1828
|
+
this.setValue(ctx, useMoistureSensorValue, this.useMoistureSensor);
|
|
1829
|
+
return true;
|
|
1830
|
+
}
|
|
1831
|
+
valveId;
|
|
1832
|
+
nominalCurrentHighThreshold;
|
|
1833
|
+
nominalCurrentLowThreshold;
|
|
1834
|
+
maximumFlow;
|
|
1835
|
+
highFlowThreshold;
|
|
1836
|
+
lowFlowThreshold;
|
|
1837
|
+
useRainSensor;
|
|
1838
|
+
useMoistureSensor;
|
|
1839
|
+
toLogEntry(ctx) {
|
|
1840
|
+
return {
|
|
1841
|
+
...super.toLogEntry(ctx),
|
|
1842
|
+
message: {
|
|
1843
|
+
"valve ID": this.valveId,
|
|
1844
|
+
"nominal current high threshold": `${this.nominalCurrentHighThreshold} mA`,
|
|
1845
|
+
"nominal current low threshold": `${this.nominalCurrentLowThreshold} mA`,
|
|
1846
|
+
"maximum flow": `${this.maximumFlow} l/h`,
|
|
1847
|
+
"high flow threshold": `${this.highFlowThreshold} l/h`,
|
|
1848
|
+
"low flow threshold": `${this.lowFlowThreshold} l/h`,
|
|
1849
|
+
"use rain sensor": this.useRainSensor,
|
|
1850
|
+
"use moisture sensor": this.useMoistureSensor
|
|
1851
|
+
}
|
|
1852
|
+
};
|
|
1853
|
+
}
|
|
1854
|
+
};
|
|
1855
|
+
return IrrigationCCValveConfigReport2 = _classThis;
|
|
1856
|
+
})();
|
|
1857
|
+
let IrrigationCCValveConfigGet = (() => {
|
|
1858
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.IrrigationCommand.ValveConfigGet), (0, import_CommandClassDecorators.expectedCCResponse)(IrrigationCCValveConfigReport, testResponseForIrrigationCommandWithValveId)];
|
|
1859
|
+
let _classDescriptor;
|
|
1860
|
+
let _classExtraInitializers = [];
|
|
1861
|
+
let _classThis;
|
|
1862
|
+
let _classSuper = IrrigationCC;
|
|
1863
|
+
var IrrigationCCValveConfigGet2 = class extends _classSuper {
|
|
1864
|
+
static {
|
|
1865
|
+
_classThis = this;
|
|
1866
|
+
}
|
|
1867
|
+
static {
|
|
1868
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1869
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1870
|
+
IrrigationCCValveConfigGet2 = _classThis = _classDescriptor.value;
|
|
1871
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1872
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1873
|
+
}
|
|
1874
|
+
constructor(options) {
|
|
1875
|
+
super(options);
|
|
1876
|
+
this.valveId = options.valveId;
|
|
1877
|
+
}
|
|
1878
|
+
static from(_raw, _ctx) {
|
|
1879
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
1880
|
+
}
|
|
1881
|
+
valveId;
|
|
1882
|
+
serialize(ctx) {
|
|
1883
|
+
this.payload = import_safe2.Bytes.from([
|
|
1884
|
+
this.valveId === "master" ? 1 : 0,
|
|
1885
|
+
this.valveId === "master" ? 1 : this.valveId || 1
|
|
1886
|
+
]);
|
|
1887
|
+
return super.serialize(ctx);
|
|
1888
|
+
}
|
|
1889
|
+
toLogEntry(ctx) {
|
|
1890
|
+
return {
|
|
1891
|
+
...super.toLogEntry(ctx),
|
|
1892
|
+
message: {
|
|
1893
|
+
"valve ID": this.valveId
|
|
1894
|
+
}
|
|
1895
|
+
};
|
|
1896
|
+
}
|
|
1897
|
+
};
|
|
1898
|
+
return IrrigationCCValveConfigGet2 = _classThis;
|
|
1899
|
+
})();
|
|
1900
|
+
let IrrigationCCValveRun = (() => {
|
|
1901
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.IrrigationCommand.ValveRun), (0, import_CommandClassDecorators.useSupervision)()];
|
|
1902
|
+
let _classDescriptor;
|
|
1903
|
+
let _classExtraInitializers = [];
|
|
1904
|
+
let _classThis;
|
|
1905
|
+
let _classSuper = IrrigationCC;
|
|
1906
|
+
var IrrigationCCValveRun2 = class extends _classSuper {
|
|
1907
|
+
static {
|
|
1908
|
+
_classThis = this;
|
|
1909
|
+
}
|
|
1910
|
+
static {
|
|
1911
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1912
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1913
|
+
IrrigationCCValveRun2 = _classThis = _classDescriptor.value;
|
|
1914
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1915
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1916
|
+
}
|
|
1917
|
+
constructor(options) {
|
|
1918
|
+
super(options);
|
|
1919
|
+
this.valveId = options.valveId;
|
|
1920
|
+
this.duration = options.duration;
|
|
1921
|
+
}
|
|
1922
|
+
static from(_raw, _ctx) {
|
|
1923
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
1924
|
+
}
|
|
1925
|
+
valveId;
|
|
1926
|
+
duration;
|
|
1927
|
+
serialize(ctx) {
|
|
1928
|
+
this.payload = import_safe2.Bytes.from([
|
|
1929
|
+
this.valveId === "master" ? 1 : 0,
|
|
1930
|
+
this.valveId === "master" ? 1 : this.valveId || 1,
|
|
1931
|
+
0,
|
|
1932
|
+
0
|
|
1933
|
+
]);
|
|
1934
|
+
this.payload.writeUInt16BE(this.duration, 2);
|
|
1935
|
+
return super.serialize(ctx);
|
|
1936
|
+
}
|
|
1937
|
+
toLogEntry(ctx) {
|
|
1938
|
+
const message = {
|
|
1939
|
+
"valve ID": this.valveId
|
|
1940
|
+
};
|
|
1941
|
+
if (this.duration) {
|
|
1942
|
+
message.duration = `${this.duration} s`;
|
|
1943
|
+
} else {
|
|
1944
|
+
message.action = "turn off";
|
|
1945
|
+
}
|
|
1946
|
+
return {
|
|
1947
|
+
...super.toLogEntry(ctx),
|
|
1948
|
+
message
|
|
1949
|
+
};
|
|
1950
|
+
}
|
|
1951
|
+
};
|
|
1952
|
+
return IrrigationCCValveRun2 = _classThis;
|
|
1953
|
+
})();
|
|
1954
|
+
let IrrigationCCValveTableSet = (() => {
|
|
1955
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.IrrigationCommand.ValveTableSet), (0, import_CommandClassDecorators.useSupervision)()];
|
|
1956
|
+
let _classDescriptor;
|
|
1957
|
+
let _classExtraInitializers = [];
|
|
1958
|
+
let _classThis;
|
|
1959
|
+
let _classSuper = IrrigationCC;
|
|
1960
|
+
var IrrigationCCValveTableSet2 = class extends _classSuper {
|
|
1961
|
+
static {
|
|
1962
|
+
_classThis = this;
|
|
1963
|
+
}
|
|
1964
|
+
static {
|
|
1965
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1966
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1967
|
+
IrrigationCCValveTableSet2 = _classThis = _classDescriptor.value;
|
|
1968
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1969
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1970
|
+
}
|
|
1971
|
+
constructor(options) {
|
|
1972
|
+
super(options);
|
|
1973
|
+
this.tableId = options.tableId;
|
|
1974
|
+
this.entries = options.entries;
|
|
1975
|
+
}
|
|
1976
|
+
static from(_raw, _ctx) {
|
|
1977
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
1978
|
+
}
|
|
1979
|
+
tableId;
|
|
1980
|
+
entries;
|
|
1981
|
+
serialize(ctx) {
|
|
1982
|
+
this.payload = new import_safe2.Bytes(1 + this.entries.length * 3);
|
|
1983
|
+
this.payload[0] = this.tableId;
|
|
1984
|
+
for (let i = 0; i < this.entries.length; i++) {
|
|
1985
|
+
const entry = this.entries[i];
|
|
1986
|
+
const offset = 1 + i * 3;
|
|
1987
|
+
this.payload[offset] = entry.valveId;
|
|
1988
|
+
this.payload.writeUInt16BE(entry.duration, offset + 1);
|
|
1989
|
+
}
|
|
1990
|
+
return super.serialize(ctx);
|
|
1991
|
+
}
|
|
1992
|
+
toLogEntry(ctx) {
|
|
1993
|
+
const message = {
|
|
1994
|
+
"table ID": this.tableId
|
|
1995
|
+
};
|
|
1996
|
+
for (let i = 0; i < this.entries.length; i++) {
|
|
1997
|
+
const entry = this.entries[i];
|
|
1998
|
+
const valveLabel = (0, import_strings.padStart)(entry.valveId.toString(), 3, "0");
|
|
1999
|
+
if (entry.duration) {
|
|
2000
|
+
message[`valve ${valveLabel} duration`] = `${entry.duration} s`;
|
|
2001
|
+
} else {
|
|
2002
|
+
message[`valve ${valveLabel} action`] = `turn off`;
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
return {
|
|
2006
|
+
...super.toLogEntry(ctx),
|
|
2007
|
+
message
|
|
2008
|
+
};
|
|
2009
|
+
}
|
|
2010
|
+
};
|
|
2011
|
+
return IrrigationCCValveTableSet2 = _classThis;
|
|
2012
|
+
})();
|
|
2013
|
+
let IrrigationCCValveTableReport = (() => {
|
|
2014
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.IrrigationCommand.ValveTableReport)];
|
|
2015
|
+
let _classDescriptor;
|
|
2016
|
+
let _classExtraInitializers = [];
|
|
2017
|
+
let _classThis;
|
|
2018
|
+
let _classSuper = IrrigationCC;
|
|
2019
|
+
var IrrigationCCValveTableReport2 = class extends _classSuper {
|
|
2020
|
+
static {
|
|
2021
|
+
_classThis = this;
|
|
2022
|
+
}
|
|
2023
|
+
static {
|
|
2024
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
2025
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
2026
|
+
IrrigationCCValveTableReport2 = _classThis = _classDescriptor.value;
|
|
2027
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
2028
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
2029
|
+
}
|
|
2030
|
+
constructor(options) {
|
|
2031
|
+
super(options);
|
|
2032
|
+
this.tableId = options.tableId;
|
|
2033
|
+
this.entries = options.entries;
|
|
2034
|
+
}
|
|
2035
|
+
static from(raw, ctx) {
|
|
2036
|
+
(0, import_safe.validatePayload)((raw.payload.length - 1) % 3 === 0);
|
|
2037
|
+
const tableId = raw.payload[0];
|
|
2038
|
+
const entries = [];
|
|
2039
|
+
for (let offset = 1; offset < raw.payload.length; offset += 3) {
|
|
2040
|
+
entries.push({
|
|
2041
|
+
valveId: raw.payload[offset],
|
|
2042
|
+
duration: raw.payload.readUInt16BE(offset + 1)
|
|
2043
|
+
});
|
|
2044
|
+
}
|
|
2045
|
+
return new this({
|
|
2046
|
+
nodeId: ctx.sourceNodeId,
|
|
2047
|
+
tableId,
|
|
2048
|
+
entries
|
|
2049
|
+
});
|
|
2050
|
+
}
|
|
2051
|
+
tableId;
|
|
2052
|
+
entries;
|
|
2053
|
+
toLogEntry(ctx) {
|
|
2054
|
+
const message = {
|
|
2055
|
+
"table ID": this.tableId
|
|
2056
|
+
};
|
|
2057
|
+
for (let i = 0; i < this.entries.length; i++) {
|
|
2058
|
+
const entry = this.entries[i];
|
|
2059
|
+
const valveLabel = (0, import_strings.padStart)(entry.valveId.toString(), 3, "0");
|
|
2060
|
+
if (entry.duration) {
|
|
2061
|
+
message[`valve ${valveLabel} duration`] = `${entry.duration} s`;
|
|
2062
|
+
} else {
|
|
2063
|
+
message[`valve ${valveLabel} action`] = `turn off`;
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
2066
|
+
return {
|
|
2067
|
+
...super.toLogEntry(ctx),
|
|
2068
|
+
message
|
|
2069
|
+
};
|
|
2070
|
+
}
|
|
2071
|
+
};
|
|
2072
|
+
return IrrigationCCValveTableReport2 = _classThis;
|
|
2073
|
+
})();
|
|
2074
|
+
function testResponseForIrrigationValveTableGet(sent, received) {
|
|
2075
|
+
return received.tableId === sent.tableId;
|
|
2076
|
+
}
|
|
2077
|
+
let IrrigationCCValveTableGet = (() => {
|
|
2078
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.IrrigationCommand.ValveTableGet), (0, import_CommandClassDecorators.expectedCCResponse)(IrrigationCCValveTableReport, testResponseForIrrigationValveTableGet)];
|
|
2079
|
+
let _classDescriptor;
|
|
2080
|
+
let _classExtraInitializers = [];
|
|
2081
|
+
let _classThis;
|
|
2082
|
+
let _classSuper = IrrigationCC;
|
|
2083
|
+
var IrrigationCCValveTableGet2 = class extends _classSuper {
|
|
2084
|
+
static {
|
|
2085
|
+
_classThis = this;
|
|
2086
|
+
}
|
|
2087
|
+
static {
|
|
2088
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
2089
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
2090
|
+
IrrigationCCValveTableGet2 = _classThis = _classDescriptor.value;
|
|
2091
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
2092
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
2093
|
+
}
|
|
2094
|
+
constructor(options) {
|
|
2095
|
+
super(options);
|
|
2096
|
+
this.tableId = options.tableId;
|
|
2097
|
+
}
|
|
2098
|
+
static from(_raw, _ctx) {
|
|
2099
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
2100
|
+
}
|
|
2101
|
+
tableId;
|
|
2102
|
+
serialize(ctx) {
|
|
2103
|
+
this.payload = import_safe2.Bytes.from([this.tableId]);
|
|
2104
|
+
return super.serialize(ctx);
|
|
2105
|
+
}
|
|
2106
|
+
toLogEntry(ctx) {
|
|
2107
|
+
return {
|
|
2108
|
+
...super.toLogEntry(ctx),
|
|
2109
|
+
message: {
|
|
2110
|
+
"table ID": this.tableId
|
|
2111
|
+
}
|
|
2112
|
+
};
|
|
2113
|
+
}
|
|
2114
|
+
};
|
|
2115
|
+
return IrrigationCCValveTableGet2 = _classThis;
|
|
2116
|
+
})();
|
|
2117
|
+
let IrrigationCCValveTableRun = (() => {
|
|
2118
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.IrrigationCommand.ValveTableRun), (0, import_CommandClassDecorators.useSupervision)()];
|
|
2119
|
+
let _classDescriptor;
|
|
2120
|
+
let _classExtraInitializers = [];
|
|
2121
|
+
let _classThis;
|
|
2122
|
+
let _classSuper = IrrigationCC;
|
|
2123
|
+
var IrrigationCCValveTableRun2 = class extends _classSuper {
|
|
2124
|
+
static {
|
|
2125
|
+
_classThis = this;
|
|
2126
|
+
}
|
|
2127
|
+
static {
|
|
2128
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
2129
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
2130
|
+
IrrigationCCValveTableRun2 = _classThis = _classDescriptor.value;
|
|
2131
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
2132
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
2133
|
+
}
|
|
2134
|
+
constructor(options) {
|
|
2135
|
+
super(options);
|
|
2136
|
+
this.tableIDs = options.tableIDs;
|
|
2137
|
+
if (this.tableIDs.length < 1) {
|
|
2138
|
+
throw new import_safe.ZWaveError(`${this.constructor.name}: At least one table ID must be specified.`, import_safe.ZWaveErrorCodes.Argument_Invalid);
|
|
2139
|
+
}
|
|
2140
|
+
}
|
|
2141
|
+
static from(_raw, _ctx) {
|
|
2142
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
2143
|
+
}
|
|
2144
|
+
tableIDs;
|
|
2145
|
+
serialize(ctx) {
|
|
2146
|
+
this.payload = import_safe2.Bytes.from(this.tableIDs);
|
|
2147
|
+
return super.serialize(ctx);
|
|
2148
|
+
}
|
|
2149
|
+
toLogEntry(ctx) {
|
|
2150
|
+
return {
|
|
2151
|
+
...super.toLogEntry(ctx),
|
|
2152
|
+
message: {
|
|
2153
|
+
"table IDs": this.tableIDs.map((id) => (0, import_strings.padStart)(id.toString(), 3, "0")).join(", ")
|
|
2154
|
+
}
|
|
2155
|
+
};
|
|
2156
|
+
}
|
|
2157
|
+
};
|
|
2158
|
+
return IrrigationCCValveTableRun2 = _classThis;
|
|
2159
|
+
})();
|
|
2160
|
+
let IrrigationCCSystemShutoff = (() => {
|
|
2161
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.IrrigationCommand.SystemShutoff), (0, import_CommandClassDecorators.useSupervision)()];
|
|
2162
|
+
let _classDescriptor;
|
|
2163
|
+
let _classExtraInitializers = [];
|
|
2164
|
+
let _classThis;
|
|
2165
|
+
let _classSuper = IrrigationCC;
|
|
2166
|
+
var IrrigationCCSystemShutoff2 = class extends _classSuper {
|
|
2167
|
+
static {
|
|
2168
|
+
_classThis = this;
|
|
2169
|
+
}
|
|
2170
|
+
static {
|
|
2171
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
2172
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
2173
|
+
IrrigationCCSystemShutoff2 = _classThis = _classDescriptor.value;
|
|
2174
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
2175
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
2176
|
+
}
|
|
2177
|
+
constructor(options) {
|
|
2178
|
+
super(options);
|
|
2179
|
+
this.duration = options.duration;
|
|
2180
|
+
}
|
|
2181
|
+
static from(_raw, _ctx) {
|
|
2182
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
2183
|
+
}
|
|
2184
|
+
duration;
|
|
2185
|
+
serialize(ctx) {
|
|
2186
|
+
this.payload = import_safe2.Bytes.from([this.duration ?? 255]);
|
|
2187
|
+
return super.serialize(ctx);
|
|
2188
|
+
}
|
|
2189
|
+
toLogEntry(ctx) {
|
|
2190
|
+
return {
|
|
2191
|
+
...super.toLogEntry(ctx),
|
|
2192
|
+
message: {
|
|
2193
|
+
duration: this.duration === 0 ? "temporarily" : this.duration === 255 || this.duration === void 0 ? "permanently" : `${this.duration} hours`
|
|
2194
|
+
}
|
|
2195
|
+
};
|
|
2196
|
+
}
|
|
2197
|
+
};
|
|
2198
|
+
return IrrigationCCSystemShutoff2 = _classThis;
|
|
2199
|
+
})();
|
|
2200
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2201
|
+
0 && (module.exports = {
|
|
2202
|
+
IrrigationCC,
|
|
2203
|
+
IrrigationCCAPI,
|
|
2204
|
+
IrrigationCCSystemConfigGet,
|
|
2205
|
+
IrrigationCCSystemConfigReport,
|
|
2206
|
+
IrrigationCCSystemConfigSet,
|
|
2207
|
+
IrrigationCCSystemInfoGet,
|
|
2208
|
+
IrrigationCCSystemInfoReport,
|
|
2209
|
+
IrrigationCCSystemShutoff,
|
|
2210
|
+
IrrigationCCSystemStatusGet,
|
|
2211
|
+
IrrigationCCSystemStatusReport,
|
|
2212
|
+
IrrigationCCValues,
|
|
2213
|
+
IrrigationCCValveConfigGet,
|
|
2214
|
+
IrrigationCCValveConfigReport,
|
|
2215
|
+
IrrigationCCValveConfigSet,
|
|
2216
|
+
IrrigationCCValveInfoGet,
|
|
2217
|
+
IrrigationCCValveInfoReport,
|
|
2218
|
+
IrrigationCCValveRun,
|
|
2219
|
+
IrrigationCCValveTableGet,
|
|
2220
|
+
IrrigationCCValveTableReport,
|
|
2221
|
+
IrrigationCCValveTableRun,
|
|
2222
|
+
IrrigationCCValveTableSet
|
|
2223
|
+
});
|
|
2224
|
+
//# sourceMappingURL=IrrigationCC.js.map
|