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