@zwave-js/cc 14.0.0-beta.1 → 14.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/cc/AlarmSensorCC.d.ts +194 -0
- package/build/cjs/cc/AlarmSensorCC.js +510 -0
- package/build/cjs/cc/AlarmSensorCC.js.map +7 -0
- package/build/cjs/cc/AssociationCC.d.ts +253 -0
- package/build/cjs/cc/AssociationCC.js +877 -0
- package/build/cjs/cc/AssociationCC.js.map +7 -0
- package/build/cjs/cc/AssociationGroupInfoCC.d.ts +230 -0
- package/build/cjs/cc/AssociationGroupInfoCC.js +887 -0
- package/build/cjs/cc/AssociationGroupInfoCC.js.map +7 -0
- package/build/cjs/cc/BarrierOperatorCC.d.ts +243 -0
- package/build/cjs/cc/BarrierOperatorCC.js +748 -0
- package/build/cjs/cc/BarrierOperatorCC.js.map +7 -0
- package/build/cjs/cc/BasicCC.d.ts +191 -0
- package/build/cjs/cc/BasicCC.js +478 -0
- package/build/cjs/cc/BasicCC.js.map +7 -0
- package/build/cjs/cc/BatteryCC.d.ts +406 -0
- package/build/cjs/cc/BatteryCC.js +590 -0
- package/build/cjs/cc/BatteryCC.js.map +7 -0
- package/build/cjs/cc/BinarySensorCC.d.ts +122 -0
- package/build/cjs/cc/BinarySensorCC.js +546 -0
- package/build/cjs/cc/BinarySensorCC.js.map +7 -0
- package/build/cjs/cc/BinarySwitchCC.d.ts +139 -0
- package/build/cjs/cc/BinarySwitchCC.js +472 -0
- package/build/cjs/cc/BinarySwitchCC.js.map +7 -0
- package/build/cjs/cc/CRC16CC.d.ts +29 -0
- package/build/cjs/cc/CRC16CC.js +208 -0
- package/build/cjs/cc/CRC16CC.js.map +7 -0
- package/build/cjs/cc/CentralSceneCC.d.ts +210 -0
- package/build/cjs/cc/CentralSceneCC.js +584 -0
- package/build/cjs/cc/CentralSceneCC.js.map +7 -0
- package/build/cjs/cc/ClimateControlScheduleCC.d.ts +177 -0
- package/build/cjs/cc/ClimateControlScheduleCC.js +646 -0
- package/build/cjs/cc/ClimateControlScheduleCC.js.map +7 -0
- package/build/cjs/cc/ClockCC.d.ts +47 -0
- package/build/cjs/cc/ClockCC.js +330 -0
- package/build/cjs/cc/ClockCC.js.map +7 -0
- package/build/cjs/cc/ColorSwitchCC.d.ts +339 -0
- package/build/cjs/cc/ColorSwitchCC.js +1265 -0
- package/build/cjs/cc/ColorSwitchCC.js.map +7 -0
- package/build/cjs/cc/ConfigurationCC.d.ts +396 -0
- package/build/cjs/cc/ConfigurationCC.js +2477 -0
- package/build/cjs/cc/ConfigurationCC.js.map +7 -0
- package/build/cjs/cc/DeviceResetLocallyCC.d.ts +17 -0
- package/build/cjs/cc/DeviceResetLocallyCC.js +168 -0
- package/build/cjs/cc/DeviceResetLocallyCC.js.map +7 -0
- package/build/cjs/cc/DoorLockCC.d.ts +837 -0
- package/build/cjs/cc/DoorLockCC.js +1366 -0
- package/build/cjs/cc/DoorLockCC.js.map +7 -0
- package/build/cjs/cc/DoorLockLoggingCC.d.ts +77 -0
- package/build/cjs/cc/DoorLockLoggingCC.js +458 -0
- package/build/cjs/cc/DoorLockLoggingCC.js.map +7 -0
- package/build/cjs/cc/EnergyProductionCC.d.ts +77 -0
- package/build/cjs/cc/EnergyProductionCC.js +329 -0
- package/build/cjs/cc/EnergyProductionCC.js.map +7 -0
- package/build/cjs/cc/EntryControlCC.d.ts +231 -0
- package/build/cjs/cc/EntryControlCC.js +754 -0
- package/build/cjs/cc/EntryControlCC.js.map +7 -0
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.d.ts +359 -0
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +1322 -0
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +7 -0
- package/build/cjs/cc/HailCC.d.ts +6 -0
- package/build/cjs/cc/HailCC.js +91 -0
- package/build/cjs/cc/HailCC.js.map +7 -0
- package/build/cjs/cc/HumidityControlModeCC.d.ts +111 -0
- package/build/cjs/cc/HumidityControlModeCC.js +449 -0
- package/build/cjs/cc/HumidityControlModeCC.js.map +7 -0
- package/build/cjs/cc/HumidityControlOperatingStateCC.d.ts +60 -0
- package/build/cjs/cc/HumidityControlOperatingStateCC.js +250 -0
- package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +7 -0
- package/build/cjs/cc/HumidityControlSetpointCC.d.ts +209 -0
- package/build/cjs/cc/HumidityControlSetpointCC.js +821 -0
- package/build/cjs/cc/HumidityControlSetpointCC.js.map +7 -0
- package/build/cjs/cc/InclusionControllerCC.d.ts +42 -0
- package/build/cjs/cc/InclusionControllerCC.js +251 -0
- package/build/cjs/cc/InclusionControllerCC.js.map +7 -0
- package/build/cjs/cc/IndicatorCC.d.ts +338 -0
- package/build/cjs/cc/IndicatorCC.js +1395 -0
- package/build/cjs/cc/IndicatorCC.js.map +7 -0
- package/build/cjs/cc/IrrigationCC.d.ts +1496 -0
- package/build/cjs/cc/IrrigationCC.js +2224 -0
- package/build/cjs/cc/IrrigationCC.js.map +7 -0
- package/build/cjs/cc/LanguageCC.d.ts +101 -0
- package/build/cjs/cc/LanguageCC.js +364 -0
- package/build/cjs/cc/LanguageCC.js.map +7 -0
- package/build/cjs/cc/LockCC.d.ts +73 -0
- package/build/cjs/cc/LockCC.js +322 -0
- package/build/cjs/cc/LockCC.js.map +7 -0
- package/build/cjs/cc/ManufacturerProprietaryCC.d.ts +32 -0
- package/build/cjs/cc/ManufacturerProprietaryCC.js +269 -0
- package/build/cjs/cc/ManufacturerProprietaryCC.js.map +7 -0
- package/build/cjs/cc/ManufacturerSpecificCC.d.ts +171 -0
- package/build/cjs/cc/ManufacturerSpecificCC.js +440 -0
- package/build/cjs/cc/ManufacturerSpecificCC.js.map +7 -0
- package/build/cjs/cc/MeterCC.d.ts +318 -0
- package/build/cjs/cc/MeterCC.js +1355 -0
- package/build/cjs/cc/MeterCC.js.map +7 -0
- package/build/cjs/cc/MultiChannelAssociationCC.d.ts +241 -0
- package/build/cjs/cc/MultiChannelAssociationCC.js +1090 -0
- package/build/cjs/cc/MultiChannelAssociationCC.js.map +7 -0
- package/build/cjs/cc/MultiChannelCC.d.ts +394 -0
- package/build/cjs/cc/MultiChannelCC.js +1268 -0
- package/build/cjs/cc/MultiChannelCC.js.map +7 -0
- package/build/cjs/cc/MultiCommandCC.d.ts +27 -0
- package/build/cjs/cc/MultiCommandCC.js +234 -0
- package/build/cjs/cc/MultiCommandCC.js.map +7 -0
- package/build/cjs/cc/MultilevelSensorCC.d.ts +185 -0
- package/build/cjs/cc/MultilevelSensorCC.js +856 -0
- package/build/cjs/cc/MultilevelSensorCC.js.map +7 -0
- package/build/cjs/cc/MultilevelSwitchCC.d.ts +357 -0
- package/build/cjs/cc/MultilevelSwitchCC.js +928 -0
- package/build/cjs/cc/MultilevelSwitchCC.js.map +7 -0
- package/build/cjs/cc/NoOperationCC.d.ts +9 -0
- package/build/cjs/cc/NoOperationCC.js +126 -0
- package/build/cjs/cc/NoOperationCC.js.map +7 -0
- package/build/cjs/cc/NodeNamingCC.d.ts +118 -0
- package/build/cjs/cc/NodeNamingCC.js +504 -0
- package/build/cjs/cc/NodeNamingCC.js.map +7 -0
- package/build/cjs/cc/NotificationCC.d.ts +479 -0
- package/build/cjs/cc/NotificationCC.js +1399 -0
- package/build/cjs/cc/NotificationCC.js.map +7 -0
- package/build/cjs/cc/PowerlevelCC.d.ts +82 -0
- package/build/cjs/cc/PowerlevelCC.js +657 -0
- package/build/cjs/cc/PowerlevelCC.js.map +7 -0
- package/build/cjs/cc/ProtectionCC.d.ts +325 -0
- package/build/cjs/cc/ProtectionCC.js +859 -0
- package/build/cjs/cc/ProtectionCC.js.map +7 -0
- package/build/cjs/cc/SceneActivationCC.d.ts +89 -0
- package/build/cjs/cc/SceneActivationCC.js +261 -0
- package/build/cjs/cc/SceneActivationCC.js.map +7 -0
- package/build/cjs/cc/SceneActuatorConfigurationCC.d.ts +120 -0
- package/build/cjs/cc/SceneActuatorConfigurationCC.js +473 -0
- package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +7 -0
- package/build/cjs/cc/SceneControllerConfigurationCC.d.ts +129 -0
- package/build/cjs/cc/SceneControllerConfigurationCC.js +526 -0
- package/build/cjs/cc/SceneControllerConfigurationCC.js.map +7 -0
- package/build/cjs/cc/ScheduleEntryLockCC.d.ts +434 -0
- package/build/cjs/cc/ScheduleEntryLockCC.js +2043 -0
- package/build/cjs/cc/ScheduleEntryLockCC.js.map +7 -0
- package/build/cjs/cc/Security2CC.d.ts +251 -0
- package/build/cjs/cc/Security2CC.js +1853 -0
- package/build/cjs/cc/Security2CC.js.map +7 -0
- package/build/cjs/cc/SecurityCC.d.ts +128 -0
- package/build/cjs/cc/SecurityCC.js +977 -0
- package/build/cjs/cc/SecurityCC.js.map +7 -0
- package/build/cjs/cc/SoundSwitchCC.d.ts +232 -0
- package/build/cjs/cc/SoundSwitchCC.js +853 -0
- package/build/cjs/cc/SoundSwitchCC.js.map +7 -0
- package/build/cjs/cc/SupervisionCC.d.ts +104 -0
- package/build/cjs/cc/SupervisionCC.js +398 -0
- package/build/cjs/cc/SupervisionCC.js.map +7 -0
- package/build/cjs/cc/ThermostatFanModeCC.d.ts +141 -0
- package/build/cjs/cc/ThermostatFanModeCC.js +495 -0
- package/build/cjs/cc/ThermostatFanModeCC.js.map +7 -0
- package/build/cjs/cc/ThermostatFanStateCC.d.ts +60 -0
- package/build/cjs/cc/ThermostatFanStateCC.js +252 -0
- package/build/cjs/cc/ThermostatFanStateCC.js.map +7 -0
- package/build/cjs/cc/ThermostatModeCC.d.ts +150 -0
- package/build/cjs/cc/ThermostatModeCC.js +559 -0
- package/build/cjs/cc/ThermostatModeCC.js.map +7 -0
- package/build/cjs/cc/ThermostatOperatingStateCC.d.ts +61 -0
- package/build/cjs/cc/ThermostatOperatingStateCC.js +248 -0
- package/build/cjs/cc/ThermostatOperatingStateCC.js.map +7 -0
- package/build/cjs/cc/ThermostatSetbackCC.d.ts +46 -0
- package/build/cjs/cc/ThermostatSetbackCC.js +366 -0
- package/build/cjs/cc/ThermostatSetbackCC.js.map +7 -0
- package/build/cjs/cc/ThermostatSetpointCC.d.ts +197 -0
- package/build/cjs/cc/ThermostatSetpointCC.js +792 -0
- package/build/cjs/cc/ThermostatSetpointCC.js.map +7 -0
- package/build/cjs/cc/TimeCC.d.ts +88 -0
- package/build/cjs/cc/TimeCC.js +635 -0
- package/build/cjs/cc/TimeCC.js.map +7 -0
- package/build/cjs/cc/TimeParametersCC.d.ts +72 -0
- package/build/cjs/cc/TimeParametersCC.js +413 -0
- package/build/cjs/cc/TimeParametersCC.js.map +7 -0
- package/build/cjs/cc/TransportServiceCC.d.ts +107 -0
- package/build/cjs/cc/TransportServiceCC.js +522 -0
- package/build/cjs/cc/TransportServiceCC.js.map +7 -0
- package/build/cjs/cc/UserCodeCC.d.ts +683 -0
- package/build/cjs/cc/UserCodeCC.js +1903 -0
- package/build/cjs/cc/UserCodeCC.js.map +7 -0
- package/build/cjs/cc/VersionCC.d.ts +469 -0
- package/build/cjs/cc/VersionCC.js +962 -0
- package/build/cjs/cc/VersionCC.js.map +7 -0
- package/build/cjs/cc/WakeUpCC.d.ts +150 -0
- package/build/cjs/cc/WakeUpCC.js +609 -0
- package/build/cjs/cc/WakeUpCC.js.map +7 -0
- package/build/cjs/cc/WindowCoveringCC.d.ts +315 -0
- package/build/cjs/cc/WindowCoveringCC.js +924 -0
- package/build/cjs/cc/WindowCoveringCC.js.map +7 -0
- package/build/cjs/cc/ZWaveLongRangeCC.d.ts +4 -0
- package/build/cjs/cc/ZWaveLongRangeCC.js +90 -0
- package/build/cjs/cc/ZWaveLongRangeCC.js.map +7 -0
- package/build/cjs/cc/ZWavePlusCC.d.ts +163 -0
- package/build/cjs/cc/ZWavePlusCC.js +362 -0
- package/build/cjs/cc/ZWavePlusCC.js.map +7 -0
- package/build/cjs/cc/ZWaveProtocolCC.d.ts +344 -0
- package/build/cjs/cc/ZWaveProtocolCC.js +1638 -0
- package/build/cjs/cc/ZWaveProtocolCC.js.map +7 -0
- package/build/cjs/cc/index.d.ts +132 -0
- package/build/cjs/cc/index.js +1180 -0
- package/build/cjs/cc/index.js.map +7 -0
- package/build/cjs/cc/manufacturerProprietary/Decorators.d.ts +64 -0
- package/build/cjs/cc/manufacturerProprietary/Decorators.js +76 -0
- package/build/cjs/cc/manufacturerProprietary/Decorators.js.map +7 -0
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.d.ts +79 -0
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js +533 -0
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js.map +7 -0
- package/build/cjs/index.d.ts +15 -0
- package/build/cjs/index.js +77 -0
- package/build/cjs/index.js.map +7 -0
- package/build/cjs/index_safe.d.ts +3 -0
- package/build/cjs/index_safe.js +25 -0
- package/build/cjs/index_safe.js.map +7 -0
- package/build/cjs/lib/API.d.ts +271 -0
- package/build/cjs/lib/API.js +413 -0
- package/build/cjs/lib/API.js.map +7 -0
- package/build/cjs/lib/CommandClass.d.ts +234 -0
- package/build/cjs/lib/CommandClass.js +692 -0
- package/build/cjs/lib/CommandClass.js.map +7 -0
- package/build/cjs/lib/CommandClassDecorators.d.ts +108 -0
- package/build/cjs/lib/CommandClassDecorators.js +181 -0
- package/build/cjs/lib/CommandClassDecorators.js.map +7 -0
- package/build/cjs/lib/EncapsulatingCommandClass.d.ts +22 -0
- package/build/cjs/lib/EncapsulatingCommandClass.js +71 -0
- package/build/cjs/lib/EncapsulatingCommandClass.js.map +7 -0
- package/build/cjs/lib/ICommandClassContainer.js +17 -0
- package/build/cjs/lib/ICommandClassContainer.js.map +7 -0
- package/build/cjs/lib/NotificationEventPayload.d.ts +10 -0
- package/build/cjs/lib/NotificationEventPayload.js +31 -0
- package/build/cjs/lib/NotificationEventPayload.js.map +7 -0
- package/build/cjs/lib/Security2/Extension.d.ts +106 -0
- package/build/cjs/lib/Security2/Extension.js +424 -0
- package/build/cjs/lib/Security2/Extension.js.map +7 -0
- package/build/cjs/lib/Security2/shared.js +69 -0
- package/build/cjs/lib/Security2/shared.js.map +7 -0
- package/build/cjs/lib/SetValueResult.js +65 -0
- package/build/cjs/lib/SetValueResult.js.map +7 -0
- package/build/cjs/lib/Values.d.ts +223 -0
- package/build/cjs/lib/Values.js +191 -0
- package/build/cjs/lib/Values.js.map +7 -0
- package/build/cjs/lib/_Types.js +1676 -0
- package/build/cjs/lib/_Types.js.map +7 -0
- package/build/cjs/lib/serializers.d.ts +34 -0
- package/build/cjs/lib/serializers.js +110 -0
- package/build/cjs/lib/serializers.js.map +7 -0
- package/build/cjs/lib/utils.d.ts +17 -0
- package/build/cjs/lib/utils.js +678 -0
- package/build/cjs/lib/utils.js.map +7 -0
- package/build/cjs/package.json +3 -0
- package/build/esm/cc/AlarmSensorCC.d.ts +194 -0
- package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -0
- package/build/esm/cc/AlarmSensorCC.js +490 -0
- package/build/esm/cc/AlarmSensorCC.js.map +1 -0
- package/build/esm/cc/AssociationCC.d.ts +253 -0
- package/build/esm/cc/AssociationCC.d.ts.map +1 -0
- package/build/esm/cc/AssociationCC.js +847 -0
- package/build/esm/cc/AssociationCC.js.map +1 -0
- package/build/esm/cc/AssociationGroupInfoCC.d.ts +230 -0
- package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -0
- package/build/esm/cc/AssociationGroupInfoCC.js +889 -0
- package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -0
- package/build/esm/cc/BarrierOperatorCC.d.ts +243 -0
- package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -0
- package/build/esm/cc/BarrierOperatorCC.js +751 -0
- package/build/esm/cc/BarrierOperatorCC.js.map +1 -0
- package/build/esm/cc/BasicCC.d.ts +191 -0
- package/build/esm/cc/BasicCC.d.ts.map +1 -0
- package/build/esm/cc/BasicCC.js +468 -0
- package/build/esm/cc/BasicCC.js.map +1 -0
- package/build/esm/cc/BatteryCC.d.ts +406 -0
- package/build/esm/cc/BatteryCC.d.ts.map +1 -0
- package/build/esm/cc/BatteryCC.js +578 -0
- package/build/esm/cc/BatteryCC.js.map +1 -0
- package/build/esm/cc/BinarySensorCC.d.ts +122 -0
- package/build/esm/cc/BinarySensorCC.d.ts.map +1 -0
- package/build/esm/cc/BinarySensorCC.js +515 -0
- package/build/esm/cc/BinarySensorCC.js.map +1 -0
- package/build/esm/cc/BinarySwitchCC.d.ts +139 -0
- package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -0
- package/build/esm/cc/BinarySwitchCC.js +441 -0
- package/build/esm/cc/BinarySwitchCC.js.map +1 -0
- package/build/esm/cc/CRC16CC.d.ts +29 -0
- package/build/esm/cc/CRC16CC.d.ts.map +1 -0
- package/build/esm/cc/CRC16CC.js +187 -0
- package/build/esm/cc/CRC16CC.js.map +1 -0
- package/build/esm/cc/CentralSceneCC.d.ts +210 -0
- package/build/esm/cc/CentralSceneCC.d.ts.map +1 -0
- package/build/esm/cc/CentralSceneCC.js +541 -0
- package/build/esm/cc/CentralSceneCC.js.map +1 -0
- package/build/esm/cc/ClimateControlScheduleCC.d.ts +177 -0
- package/build/esm/cc/ClimateControlScheduleCC.d.ts.map +1 -0
- package/build/esm/cc/ClimateControlScheduleCC.js +607 -0
- package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -0
- package/build/esm/cc/ClockCC.d.ts +47 -0
- package/build/esm/cc/ClockCC.d.ts.map +1 -0
- package/build/esm/cc/ClockCC.js +294 -0
- package/build/esm/cc/ClockCC.js.map +1 -0
- package/build/esm/cc/ColorSwitchCC.d.ts +339 -0
- package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -0
- package/build/esm/cc/ColorSwitchCC.js +1274 -0
- package/build/esm/cc/ColorSwitchCC.js.map +1 -0
- package/build/esm/cc/ConfigurationCC.d.ts +396 -0
- package/build/esm/cc/ConfigurationCC.d.ts.map +1 -0
- package/build/esm/cc/ConfigurationCC.js +2666 -0
- package/build/esm/cc/ConfigurationCC.js.map +1 -0
- package/build/esm/cc/DeviceResetLocallyCC.d.ts +17 -0
- package/build/esm/cc/DeviceResetLocallyCC.d.ts.map +1 -0
- package/build/esm/cc/DeviceResetLocallyCC.js +138 -0
- package/build/esm/cc/DeviceResetLocallyCC.js.map +1 -0
- package/build/esm/cc/DoorLockCC.d.ts +837 -0
- package/build/esm/cc/DoorLockCC.d.ts.map +1 -0
- package/build/esm/cc/DoorLockCC.js +1372 -0
- package/build/esm/cc/DoorLockCC.js.map +1 -0
- package/build/esm/cc/DoorLockLoggingCC.d.ts +77 -0
- package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -0
- package/build/esm/cc/DoorLockLoggingCC.js +414 -0
- package/build/esm/cc/DoorLockLoggingCC.js.map +1 -0
- package/build/esm/cc/EnergyProductionCC.d.ts +77 -0
- package/build/esm/cc/EnergyProductionCC.d.ts.map +1 -0
- package/build/esm/cc/EnergyProductionCC.js +289 -0
- package/build/esm/cc/EnergyProductionCC.js.map +1 -0
- package/build/esm/cc/EntryControlCC.d.ts +231 -0
- package/build/esm/cc/EntryControlCC.d.ts.map +1 -0
- package/build/esm/cc/EntryControlCC.js +717 -0
- package/build/esm/cc/EntryControlCC.js.map +1 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts +359 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js +1311 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -0
- package/build/esm/cc/HailCC.d.ts +6 -0
- package/build/esm/cc/HailCC.d.ts.map +1 -0
- package/build/esm/cc/HailCC.js +60 -0
- package/build/esm/cc/HailCC.js.map +1 -0
- package/build/esm/cc/HumidityControlModeCC.d.ts +111 -0
- package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -0
- package/build/esm/cc/HumidityControlModeCC.js +412 -0
- package/build/esm/cc/HumidityControlModeCC.js.map +1 -0
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts +60 -0
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts.map +1 -0
- package/build/esm/cc/HumidityControlOperatingStateCC.js +210 -0
- package/build/esm/cc/HumidityControlOperatingStateCC.js.map +1 -0
- package/build/esm/cc/HumidityControlSetpointCC.d.ts +209 -0
- package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -0
- package/build/esm/cc/HumidityControlSetpointCC.js +805 -0
- package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -0
- package/build/esm/cc/InclusionControllerCC.d.ts +42 -0
- package/build/esm/cc/InclusionControllerCC.d.ts.map +1 -0
- package/build/esm/cc/InclusionControllerCC.js +211 -0
- package/build/esm/cc/InclusionControllerCC.js.map +1 -0
- package/build/esm/cc/IndicatorCC.d.ts +338 -0
- package/build/esm/cc/IndicatorCC.d.ts.map +1 -0
- package/build/esm/cc/IndicatorCC.js +1455 -0
- package/build/esm/cc/IndicatorCC.js.map +1 -0
- package/build/esm/cc/IrrigationCC.d.ts +1496 -0
- package/build/esm/cc/IrrigationCC.d.ts.map +1 -0
- package/build/esm/cc/IrrigationCC.js +2239 -0
- package/build/esm/cc/IrrigationCC.js.map +1 -0
- package/build/esm/cc/LanguageCC.d.ts +101 -0
- package/build/esm/cc/LanguageCC.d.ts.map +1 -0
- package/build/esm/cc/LanguageCC.js +325 -0
- package/build/esm/cc/LanguageCC.js.map +1 -0
- package/build/esm/cc/LockCC.d.ts +73 -0
- package/build/esm/cc/LockCC.d.ts.map +1 -0
- package/build/esm/cc/LockCC.js +282 -0
- package/build/esm/cc/LockCC.js.map +1 -0
- package/build/esm/cc/ManufacturerProprietaryCC.d.ts +32 -0
- package/build/esm/cc/ManufacturerProprietaryCC.d.ts.map +1 -0
- package/build/esm/cc/ManufacturerProprietaryCC.js +252 -0
- package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -0
- package/build/esm/cc/ManufacturerSpecificCC.d.ts +171 -0
- package/build/esm/cc/ManufacturerSpecificCC.d.ts.map +1 -0
- package/build/esm/cc/ManufacturerSpecificCC.js +404 -0
- package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -0
- package/build/esm/cc/MeterCC.d.ts +318 -0
- package/build/esm/cc/MeterCC.d.ts.map +1 -0
- package/build/esm/cc/MeterCC.js +1409 -0
- package/build/esm/cc/MeterCC.js.map +1 -0
- package/build/esm/cc/MultiChannelAssociationCC.d.ts +241 -0
- package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -0
- package/build/esm/cc/MultiChannelAssociationCC.js +1094 -0
- package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -0
- package/build/esm/cc/MultiChannelCC.d.ts +394 -0
- package/build/esm/cc/MultiChannelCC.d.ts.map +1 -0
- package/build/esm/cc/MultiChannelCC.js +1312 -0
- package/build/esm/cc/MultiChannelCC.js.map +1 -0
- package/build/esm/cc/MultiCommandCC.d.ts +27 -0
- package/build/esm/cc/MultiCommandCC.d.ts.map +1 -0
- package/build/esm/cc/MultiCommandCC.js +206 -0
- package/build/esm/cc/MultiCommandCC.js.map +1 -0
- package/build/esm/cc/MultilevelSensorCC.d.ts +185 -0
- package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -0
- package/build/esm/cc/MultilevelSensorCC.js +872 -0
- package/build/esm/cc/MultilevelSensorCC.js.map +1 -0
- package/build/esm/cc/MultilevelSwitchCC.d.ts +357 -0
- package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -0
- package/build/esm/cc/MultilevelSwitchCC.js +935 -0
- package/build/esm/cc/MultilevelSwitchCC.js.map +1 -0
- package/build/esm/cc/NoOperationCC.d.ts +9 -0
- package/build/esm/cc/NoOperationCC.d.ts.map +1 -0
- package/build/esm/cc/NoOperationCC.js +92 -0
- package/build/esm/cc/NoOperationCC.js.map +1 -0
- package/build/esm/cc/NodeNamingCC.d.ts +118 -0
- package/build/esm/cc/NodeNamingCC.d.ts.map +1 -0
- package/build/esm/cc/NodeNamingCC.js +464 -0
- package/build/esm/cc/NodeNamingCC.js.map +1 -0
- package/build/esm/cc/NotificationCC.d.ts +479 -0
- package/build/esm/cc/NotificationCC.d.ts.map +1 -0
- package/build/esm/cc/NotificationCC.js +1481 -0
- package/build/esm/cc/NotificationCC.js.map +1 -0
- package/build/esm/cc/PowerlevelCC.d.ts +82 -0
- package/build/esm/cc/PowerlevelCC.d.ts.map +1 -0
- package/build/esm/cc/PowerlevelCC.js +611 -0
- package/build/esm/cc/PowerlevelCC.js.map +1 -0
- package/build/esm/cc/ProtectionCC.d.ts +325 -0
- package/build/esm/cc/ProtectionCC.d.ts.map +1 -0
- package/build/esm/cc/ProtectionCC.js +830 -0
- package/build/esm/cc/ProtectionCC.js.map +1 -0
- package/build/esm/cc/SceneActivationCC.d.ts +89 -0
- package/build/esm/cc/SceneActivationCC.d.ts.map +1 -0
- package/build/esm/cc/SceneActivationCC.js +223 -0
- package/build/esm/cc/SceneActivationCC.js.map +1 -0
- package/build/esm/cc/SceneActuatorConfigurationCC.d.ts +120 -0
- package/build/esm/cc/SceneActuatorConfigurationCC.d.ts.map +1 -0
- package/build/esm/cc/SceneActuatorConfigurationCC.js +462 -0
- package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -0
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts +129 -0
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts.map +1 -0
- package/build/esm/cc/SceneControllerConfigurationCC.js +534 -0
- package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -0
- package/build/esm/cc/ScheduleEntryLockCC.d.ts +434 -0
- package/build/esm/cc/ScheduleEntryLockCC.d.ts.map +1 -0
- package/build/esm/cc/ScheduleEntryLockCC.js +2065 -0
- package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -0
- package/build/esm/cc/Security2CC.d.ts +251 -0
- package/build/esm/cc/Security2CC.d.ts.map +1 -0
- package/build/esm/cc/Security2CC.js +2041 -0
- package/build/esm/cc/Security2CC.js.map +1 -0
- package/build/esm/cc/SecurityCC.d.ts +128 -0
- package/build/esm/cc/SecurityCC.d.ts.map +1 -0
- package/build/esm/cc/SecurityCC.js +989 -0
- package/build/esm/cc/SecurityCC.js.map +1 -0
- package/build/esm/cc/SoundSwitchCC.d.ts +232 -0
- package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -0
- package/build/esm/cc/SoundSwitchCC.js +796 -0
- package/build/esm/cc/SoundSwitchCC.js.map +1 -0
- package/build/esm/cc/SupervisionCC.d.ts +104 -0
- package/build/esm/cc/SupervisionCC.d.ts.map +1 -0
- package/build/esm/cc/SupervisionCC.js +396 -0
- package/build/esm/cc/SupervisionCC.js.map +1 -0
- package/build/esm/cc/ThermostatFanModeCC.d.ts +141 -0
- package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatFanModeCC.js +463 -0
- package/build/esm/cc/ThermostatFanModeCC.js.map +1 -0
- package/build/esm/cc/ThermostatFanStateCC.d.ts +60 -0
- package/build/esm/cc/ThermostatFanStateCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatFanStateCC.js +212 -0
- package/build/esm/cc/ThermostatFanStateCC.js.map +1 -0
- package/build/esm/cc/ThermostatModeCC.d.ts +150 -0
- package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatModeCC.js +530 -0
- package/build/esm/cc/ThermostatModeCC.js.map +1 -0
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts +61 -0
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatOperatingStateCC.js +208 -0
- package/build/esm/cc/ThermostatOperatingStateCC.js.map +1 -0
- package/build/esm/cc/ThermostatSetbackCC.d.ts +46 -0
- package/build/esm/cc/ThermostatSetbackCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatSetbackCC.js +333 -0
- package/build/esm/cc/ThermostatSetbackCC.js.map +1 -0
- package/build/esm/cc/ThermostatSetpointCC.d.ts +197 -0
- package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatSetpointCC.js +786 -0
- package/build/esm/cc/ThermostatSetpointCC.js.map +1 -0
- package/build/esm/cc/TimeCC.d.ts +88 -0
- package/build/esm/cc/TimeCC.d.ts.map +1 -0
- package/build/esm/cc/TimeCC.js +590 -0
- package/build/esm/cc/TimeCC.js.map +1 -0
- package/build/esm/cc/TimeParametersCC.d.ts +72 -0
- package/build/esm/cc/TimeParametersCC.d.ts.map +1 -0
- package/build/esm/cc/TimeParametersCC.js +385 -0
- package/build/esm/cc/TimeParametersCC.js.map +1 -0
- package/build/esm/cc/TransportServiceCC.d.ts +107 -0
- package/build/esm/cc/TransportServiceCC.d.ts.map +1 -0
- package/build/esm/cc/TransportServiceCC.js +523 -0
- package/build/esm/cc/TransportServiceCC.js.map +1 -0
- package/build/esm/cc/UserCodeCC.d.ts +683 -0
- package/build/esm/cc/UserCodeCC.d.ts.map +1 -0
- package/build/esm/cc/UserCodeCC.js +1933 -0
- package/build/esm/cc/UserCodeCC.js.map +1 -0
- package/build/esm/cc/VersionCC.d.ts +469 -0
- package/build/esm/cc/VersionCC.d.ts.map +1 -0
- package/build/esm/cc/VersionCC.js +971 -0
- package/build/esm/cc/VersionCC.js.map +1 -0
- package/build/esm/cc/WakeUpCC.d.ts +150 -0
- package/build/esm/cc/WakeUpCC.d.ts.map +1 -0
- package/build/esm/cc/WakeUpCC.js +568 -0
- package/build/esm/cc/WakeUpCC.js.map +1 -0
- package/build/esm/cc/WindowCoveringCC.d.ts +315 -0
- package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -0
- package/build/esm/cc/WindowCoveringCC.js +905 -0
- package/build/esm/cc/WindowCoveringCC.js.map +1 -0
- package/build/esm/cc/ZWaveLongRangeCC.d.ts +4 -0
- package/build/esm/cc/ZWaveLongRangeCC.d.ts.map +1 -0
- package/build/esm/cc/ZWaveLongRangeCC.js +57 -0
- package/build/esm/cc/ZWaveLongRangeCC.js.map +1 -0
- package/build/esm/cc/ZWavePlusCC.d.ts +163 -0
- package/build/esm/cc/ZWavePlusCC.d.ts.map +1 -0
- package/build/esm/cc/ZWavePlusCC.js +328 -0
- package/build/esm/cc/ZWavePlusCC.js.map +1 -0
- package/build/esm/cc/ZWaveProtocolCC.d.ts +344 -0
- package/build/esm/cc/ZWaveProtocolCC.d.ts.map +1 -0
- package/build/esm/cc/ZWaveProtocolCC.js +1520 -0
- package/build/esm/cc/ZWaveProtocolCC.js.map +1 -0
- package/build/esm/cc/index.d.ts +132 -0
- package/build/esm/cc/index.d.ts.map +1 -0
- package/build/esm/cc/index.js +71 -0
- package/build/esm/cc/index.js.map +1 -0
- package/build/esm/cc/manufacturerProprietary/Decorators.d.ts +64 -0
- package/build/esm/cc/manufacturerProprietary/Decorators.d.ts.map +1 -0
- package/build/esm/cc/manufacturerProprietary/Decorators.js +79 -0
- package/build/esm/cc/manufacturerProprietary/Decorators.js.map +1 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts +79 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts.map +1 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js +489 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js.map +1 -0
- package/build/esm/index.d.ts +15 -0
- package/build/esm/index.d.ts.map +1 -0
- package/build/esm/index.js +14 -0
- package/build/esm/index.js.map +1 -0
- package/build/esm/index_safe.d.ts +3 -0
- package/build/esm/index_safe.d.ts.map +1 -0
- package/build/esm/index_safe.js +4 -0
- package/build/esm/index_safe.js.map +1 -0
- package/build/esm/lib/API.d.ts +271 -0
- package/build/esm/lib/API.d.ts.map +1 -0
- package/build/esm/lib/API.js +448 -0
- package/build/esm/lib/API.js.map +1 -0
- package/build/esm/lib/CommandClass.d.ts +234 -0
- package/build/esm/lib/CommandClass.d.ts.map +1 -0
- package/build/esm/lib/CommandClass.js +781 -0
- package/build/esm/lib/CommandClass.js.map +1 -0
- package/build/esm/lib/CommandClassDecorators.d.ts +108 -0
- package/build/esm/lib/CommandClassDecorators.d.ts.map +1 -0
- package/build/esm/lib/CommandClassDecorators.js +229 -0
- package/build/esm/lib/CommandClassDecorators.js.map +1 -0
- package/build/esm/lib/EncapsulatingCommandClass.d.ts +22 -0
- package/build/esm/lib/EncapsulatingCommandClass.d.ts.map +1 -0
- package/build/esm/lib/EncapsulatingCommandClass.js +56 -0
- package/build/esm/lib/EncapsulatingCommandClass.js.map +1 -0
- package/build/esm/lib/ICommandClassContainer.d.ts +2 -0
- package/build/esm/lib/ICommandClassContainer.d.ts.map +1 -0
- package/build/esm/lib/ICommandClassContainer.js +2 -0
- package/build/esm/lib/ICommandClassContainer.js.map +1 -0
- package/build/esm/lib/NotificationEventPayload.d.ts +10 -0
- package/build/esm/lib/NotificationEventPayload.d.ts.map +1 -0
- package/build/esm/lib/NotificationEventPayload.js +7 -0
- package/build/esm/lib/NotificationEventPayload.js.map +1 -0
- package/build/esm/lib/Security2/Extension.d.ts +106 -0
- package/build/esm/lib/Security2/Extension.d.ts.map +1 -0
- package/build/esm/lib/Security2/Extension.js +380 -0
- package/build/esm/lib/Security2/Extension.js.map +1 -0
- package/build/esm/lib/Security2/shared.d.ts +37 -0
- package/build/esm/lib/Security2/shared.d.ts.map +1 -0
- package/build/esm/lib/Security2/shared.js +40 -0
- package/build/esm/lib/Security2/shared.js.map +1 -0
- package/build/esm/lib/SetValueResult.d.ts +55 -0
- package/build/esm/lib/SetValueResult.d.ts.map +1 -0
- package/build/esm/lib/SetValueResult.js +53 -0
- package/build/esm/lib/SetValueResult.js.map +1 -0
- package/build/esm/lib/Values.d.ts +223 -0
- package/build/esm/lib/Values.d.ts.map +1 -0
- package/build/esm/lib/Values.js +169 -0
- package/build/esm/lib/Values.js.map +1 -0
- package/build/esm/lib/_Types.d.ts +1461 -0
- package/build/esm/lib/_Types.d.ts.map +1 -0
- package/build/esm/lib/_Types.js +1432 -0
- package/build/esm/lib/_Types.js.map +1 -0
- package/build/esm/lib/serializers.d.ts +34 -0
- package/build/esm/lib/serializers.d.ts.map +1 -0
- package/build/esm/lib/serializers.js +98 -0
- package/build/esm/lib/serializers.js.map +1 -0
- package/build/esm/lib/utils.d.ts +17 -0
- package/build/esm/lib/utils.d.ts.map +1 -0
- package/build/esm/lib/utils.js +847 -0
- package/build/esm/lib/utils.js.map +1 -0
- package/build/esm/package.json +3 -0
- package/package.json +28 -23
- package/build/cc/AlarmSensorCC.d.ts +0 -194
- package/build/cc/AlarmSensorCC.d.ts.map +0 -1
- package/build/cc/AlarmSensorCC.js +0 -395
- package/build/cc/AlarmSensorCC.js.map +0 -1
- package/build/cc/AssociationCC.d.ts +0 -253
- package/build/cc/AssociationCC.d.ts.map +0 -1
- package/build/cc/AssociationCC.js +0 -732
- package/build/cc/AssociationCC.js.map +0 -1
- package/build/cc/AssociationGroupInfoCC.d.ts +0 -230
- package/build/cc/AssociationGroupInfoCC.d.ts.map +0 -1
- package/build/cc/AssociationGroupInfoCC.js +0 -772
- package/build/cc/AssociationGroupInfoCC.js.map +0 -1
- package/build/cc/BarrierOperatorCC.d.ts +0 -243
- package/build/cc/BarrierOperatorCC.d.ts.map +0 -1
- package/build/cc/BarrierOperatorCC.js +0 -613
- package/build/cc/BarrierOperatorCC.js.map +0 -1
- package/build/cc/BasicCC.d.ts +0 -191
- package/build/cc/BasicCC.d.ts.map +0 -1
- package/build/cc/BasicCC.js +0 -393
- package/build/cc/BasicCC.js.map +0 -1
- package/build/cc/BatteryCC.d.ts +0 -406
- package/build/cc/BatteryCC.d.ts.map +0 -1
- package/build/cc/BatteryCC.js +0 -516
- package/build/cc/BatteryCC.js.map +0 -1
- package/build/cc/BinarySensorCC.d.ts +0 -122
- package/build/cc/BinarySensorCC.d.ts.map +0 -1
- package/build/cc/BinarySensorCC.js +0 -420
- package/build/cc/BinarySensorCC.js.map +0 -1
- package/build/cc/BinarySwitchCC.d.ts +0 -139
- package/build/cc/BinarySwitchCC.d.ts.map +0 -1
- package/build/cc/BinarySwitchCC.js +0 -365
- package/build/cc/BinarySwitchCC.js.map +0 -1
- package/build/cc/CRC16CC.d.ts +0 -29
- package/build/cc/CRC16CC.d.ts.map +0 -1
- package/build/cc/CRC16CC.js +0 -126
- package/build/cc/CRC16CC.js.map +0 -1
- package/build/cc/CentralSceneCC.d.ts +0 -210
- package/build/cc/CentralSceneCC.d.ts.map +0 -1
- package/build/cc/CentralSceneCC.js +0 -453
- package/build/cc/CentralSceneCC.js.map +0 -1
- package/build/cc/ClimateControlScheduleCC.d.ts +0 -177
- package/build/cc/ClimateControlScheduleCC.d.ts.map +0 -1
- package/build/cc/ClimateControlScheduleCC.js +0 -469
- package/build/cc/ClimateControlScheduleCC.js.map +0 -1
- package/build/cc/ClockCC.d.ts +0 -47
- package/build/cc/ClockCC.d.ts.map +0 -1
- package/build/cc/ClockCC.js +0 -208
- package/build/cc/ClockCC.js.map +0 -1
- package/build/cc/ColorSwitchCC.d.ts +0 -339
- package/build/cc/ColorSwitchCC.d.ts.map +0 -1
- package/build/cc/ColorSwitchCC.js +0 -1152
- package/build/cc/ColorSwitchCC.js.map +0 -1
- package/build/cc/ConfigurationCC.d.ts +0 -396
- package/build/cc/ConfigurationCC.d.ts.map +0 -1
- package/build/cc/ConfigurationCC.js +0 -2458
- package/build/cc/ConfigurationCC.js.map +0 -1
- package/build/cc/DeviceResetLocallyCC.d.ts +0 -17
- package/build/cc/DeviceResetLocallyCC.d.ts.map +0 -1
- package/build/cc/DeviceResetLocallyCC.js +0 -76
- package/build/cc/DeviceResetLocallyCC.js.map +0 -1
- package/build/cc/DoorLockCC.d.ts +0 -837
- package/build/cc/DoorLockCC.d.ts.map +0 -1
- package/build/cc/DoorLockCC.js +0 -1273
- package/build/cc/DoorLockCC.js.map +0 -1
- package/build/cc/DoorLockLoggingCC.d.ts +0 -77
- package/build/cc/DoorLockLoggingCC.d.ts.map +0 -1
- package/build/cc/DoorLockLoggingCC.js +0 -319
- package/build/cc/DoorLockLoggingCC.js.map +0 -1
- package/build/cc/EnergyProductionCC.d.ts +0 -77
- package/build/cc/EnergyProductionCC.d.ts.map +0 -1
- package/build/cc/EnergyProductionCC.js +0 -216
- package/build/cc/EnergyProductionCC.js.map +0 -1
- package/build/cc/EntryControlCC.d.ts +0 -231
- package/build/cc/EntryControlCC.d.ts.map +0 -1
- package/build/cc/EntryControlCC.js +0 -607
- package/build/cc/EntryControlCC.js.map +0 -1
- package/build/cc/FirmwareUpdateMetaDataCC.d.ts +0 -359
- package/build/cc/FirmwareUpdateMetaDataCC.d.ts.map +0 -1
- package/build/cc/FirmwareUpdateMetaDataCC.js +0 -1145
- package/build/cc/FirmwareUpdateMetaDataCC.js.map +0 -1
- package/build/cc/HailCC.d.ts +0 -6
- package/build/cc/HailCC.d.ts.map +0 -1
- package/build/cc/HailCC.js +0 -24
- package/build/cc/HailCC.js.map +0 -1
- package/build/cc/HumidityControlModeCC.d.ts +0 -111
- package/build/cc/HumidityControlModeCC.d.ts.map +0 -1
- package/build/cc/HumidityControlModeCC.js +0 -308
- package/build/cc/HumidityControlModeCC.js.map +0 -1
- package/build/cc/HumidityControlOperatingStateCC.d.ts +0 -60
- package/build/cc/HumidityControlOperatingStateCC.d.ts.map +0 -1
- package/build/cc/HumidityControlOperatingStateCC.js +0 -140
- package/build/cc/HumidityControlOperatingStateCC.js.map +0 -1
- package/build/cc/HumidityControlSetpointCC.d.ts +0 -209
- package/build/cc/HumidityControlSetpointCC.d.ts.map +0 -1
- package/build/cc/HumidityControlSetpointCC.js +0 -648
- package/build/cc/HumidityControlSetpointCC.js.map +0 -1
- package/build/cc/InclusionControllerCC.d.ts +0 -42
- package/build/cc/InclusionControllerCC.d.ts.map +0 -1
- package/build/cc/InclusionControllerCC.js +0 -136
- package/build/cc/InclusionControllerCC.js.map +0 -1
- package/build/cc/IndicatorCC.d.ts +0 -338
- package/build/cc/IndicatorCC.d.ts.map +0 -1
- package/build/cc/IndicatorCC.js +0 -1320
- package/build/cc/IndicatorCC.js.map +0 -1
- package/build/cc/IrrigationCC.d.ts +0 -1496
- package/build/cc/IrrigationCC.d.ts.map +0 -1
- package/build/cc/IrrigationCC.js +0 -2041
- package/build/cc/IrrigationCC.js.map +0 -1
- package/build/cc/LanguageCC.d.ts +0 -101
- package/build/cc/LanguageCC.d.ts.map +0 -1
- package/build/cc/LanguageCC.js +0 -246
- package/build/cc/LanguageCC.js.map +0 -1
- package/build/cc/LockCC.d.ts +0 -73
- package/build/cc/LockCC.d.ts.map +0 -1
- package/build/cc/LockCC.js +0 -200
- package/build/cc/LockCC.js.map +0 -1
- package/build/cc/ManufacturerProprietaryCC.d.ts +0 -32
- package/build/cc/ManufacturerProprietaryCC.d.ts.map +0 -1
- package/build/cc/ManufacturerProprietaryCC.js +0 -204
- package/build/cc/ManufacturerProprietaryCC.js.map +0 -1
- package/build/cc/ManufacturerSpecificCC.d.ts +0 -171
- package/build/cc/ManufacturerSpecificCC.d.ts.map +0 -1
- package/build/cc/ManufacturerSpecificCC.js +0 -318
- package/build/cc/ManufacturerSpecificCC.js.map +0 -1
- package/build/cc/MeterCC.d.ts +0 -318
- package/build/cc/MeterCC.d.ts.map +0 -1
- package/build/cc/MeterCC.js +0 -1312
- package/build/cc/MeterCC.js.map +0 -1
- package/build/cc/MultiChannelAssociationCC.d.ts +0 -241
- package/build/cc/MultiChannelAssociationCC.d.ts.map +0 -1
- package/build/cc/MultiChannelAssociationCC.js +0 -1007
- package/build/cc/MultiChannelAssociationCC.js.map +0 -1
- package/build/cc/MultiChannelCC.d.ts +0 -394
- package/build/cc/MultiChannelCC.d.ts.map +0 -1
- package/build/cc/MultiChannelCC.js +0 -1130
- package/build/cc/MultiChannelCC.js.map +0 -1
- package/build/cc/MultiCommandCC.d.ts +0 -27
- package/build/cc/MultiCommandCC.d.ts.map +0 -1
- package/build/cc/MultiCommandCC.js +0 -145
- package/build/cc/MultiCommandCC.js.map +0 -1
- package/build/cc/MultilevelSensorCC.d.ts +0 -185
- package/build/cc/MultilevelSensorCC.d.ts.map +0 -1
- package/build/cc/MultilevelSensorCC.js +0 -756
- package/build/cc/MultilevelSensorCC.js.map +0 -1
- package/build/cc/MultilevelSwitchCC.d.ts +0 -357
- package/build/cc/MultilevelSwitchCC.d.ts.map +0 -1
- package/build/cc/MultilevelSwitchCC.js +0 -813
- package/build/cc/MultilevelSwitchCC.js.map +0 -1
- package/build/cc/NoOperationCC.d.ts +0 -9
- package/build/cc/NoOperationCC.d.ts.map +0 -1
- package/build/cc/NoOperationCC.js +0 -42
- package/build/cc/NoOperationCC.js.map +0 -1
- package/build/cc/NodeNamingCC.d.ts +0 -118
- package/build/cc/NodeNamingCC.d.ts.map +0 -1
- package/build/cc/NodeNamingCC.js +0 -348
- package/build/cc/NodeNamingCC.js.map +0 -1
- package/build/cc/NotificationCC.d.ts +0 -479
- package/build/cc/NotificationCC.d.ts.map +0 -1
- package/build/cc/NotificationCC.js +0 -1379
- package/build/cc/NotificationCC.js.map +0 -1
- package/build/cc/PowerlevelCC.d.ts +0 -82
- package/build/cc/PowerlevelCC.d.ts.map +0 -1
- package/build/cc/PowerlevelCC.js +0 -488
- package/build/cc/PowerlevelCC.js.map +0 -1
- package/build/cc/ProtectionCC.d.ts +0 -325
- package/build/cc/ProtectionCC.d.ts.map +0 -1
- package/build/cc/ProtectionCC.js +0 -672
- package/build/cc/ProtectionCC.js.map +0 -1
- package/build/cc/SceneActivationCC.d.ts +0 -89
- package/build/cc/SceneActivationCC.d.ts.map +0 -1
- package/build/cc/SceneActivationCC.js +0 -169
- package/build/cc/SceneActivationCC.js.map +0 -1
- package/build/cc/SceneActuatorConfigurationCC.d.ts +0 -120
- package/build/cc/SceneActuatorConfigurationCC.d.ts.map +0 -1
- package/build/cc/SceneActuatorConfigurationCC.js +0 -377
- package/build/cc/SceneActuatorConfigurationCC.js.map +0 -1
- package/build/cc/SceneControllerConfigurationCC.d.ts +0 -129
- package/build/cc/SceneControllerConfigurationCC.d.ts.map +0 -1
- package/build/cc/SceneControllerConfigurationCC.js +0 -449
- package/build/cc/SceneControllerConfigurationCC.js.map +0 -1
- package/build/cc/ScheduleEntryLockCC.d.ts +0 -434
- package/build/cc/ScheduleEntryLockCC.d.ts.map +0 -1
- package/build/cc/ScheduleEntryLockCC.js +0 -1829
- package/build/cc/ScheduleEntryLockCC.js.map +0 -1
- package/build/cc/Security2CC.d.ts +0 -251
- package/build/cc/Security2CC.d.ts.map +0 -1
- package/build/cc/Security2CC.js +0 -1817
- package/build/cc/Security2CC.js.map +0 -1
- package/build/cc/SecurityCC.d.ts +0 -128
- package/build/cc/SecurityCC.d.ts.map +0 -1
- package/build/cc/SecurityCC.js +0 -803
- package/build/cc/SecurityCC.js.map +0 -1
- package/build/cc/SoundSwitchCC.d.ts +0 -232
- package/build/cc/SoundSwitchCC.d.ts.map +0 -1
- package/build/cc/SoundSwitchCC.js +0 -636
- package/build/cc/SoundSwitchCC.js.map +0 -1
- package/build/cc/SupervisionCC.d.ts +0 -104
- package/build/cc/SupervisionCC.d.ts.map +0 -1
- package/build/cc/SupervisionCC.js +0 -322
- package/build/cc/SupervisionCC.js.map +0 -1
- package/build/cc/ThermostatFanModeCC.d.ts +0 -141
- package/build/cc/ThermostatFanModeCC.d.ts.map +0 -1
- package/build/cc/ThermostatFanModeCC.js +0 -362
- package/build/cc/ThermostatFanModeCC.js.map +0 -1
- package/build/cc/ThermostatFanStateCC.d.ts +0 -60
- package/build/cc/ThermostatFanStateCC.d.ts.map +0 -1
- package/build/cc/ThermostatFanStateCC.js +0 -142
- package/build/cc/ThermostatFanStateCC.js.map +0 -1
- package/build/cc/ThermostatModeCC.d.ts +0 -150
- package/build/cc/ThermostatModeCC.d.ts.map +0 -1
- package/build/cc/ThermostatModeCC.js +0 -429
- package/build/cc/ThermostatModeCC.js.map +0 -1
- package/build/cc/ThermostatOperatingStateCC.d.ts +0 -61
- package/build/cc/ThermostatOperatingStateCC.d.ts.map +0 -1
- package/build/cc/ThermostatOperatingStateCC.js +0 -138
- package/build/cc/ThermostatOperatingStateCC.js.map +0 -1
- package/build/cc/ThermostatSetbackCC.d.ts +0 -46
- package/build/cc/ThermostatSetbackCC.d.ts.map +0 -1
- package/build/cc/ThermostatSetbackCC.js +0 -247
- package/build/cc/ThermostatSetbackCC.js.map +0 -1
- package/build/cc/ThermostatSetpointCC.d.ts +0 -197
- package/build/cc/ThermostatSetpointCC.d.ts.map +0 -1
- package/build/cc/ThermostatSetpointCC.js +0 -658
- package/build/cc/ThermostatSetpointCC.js.map +0 -1
- package/build/cc/TimeCC.d.ts +0 -88
- package/build/cc/TimeCC.d.ts.map +0 -1
- package/build/cc/TimeCC.js +0 -454
- package/build/cc/TimeCC.js.map +0 -1
- package/build/cc/TimeParametersCC.d.ts +0 -72
- package/build/cc/TimeParametersCC.d.ts.map +0 -1
- package/build/cc/TimeParametersCC.js +0 -303
- package/build/cc/TimeParametersCC.js.map +0 -1
- package/build/cc/TransportServiceCC.d.ts +0 -107
- package/build/cc/TransportServiceCC.d.ts.map +0 -1
- package/build/cc/TransportServiceCC.js +0 -426
- package/build/cc/TransportServiceCC.js.map +0 -1
- package/build/cc/UserCodeCC.d.ts +0 -683
- package/build/cc/UserCodeCC.d.ts.map +0 -1
- package/build/cc/UserCodeCC.js +0 -1699
- package/build/cc/UserCodeCC.js.map +0 -1
- package/build/cc/VersionCC.d.ts +0 -469
- package/build/cc/VersionCC.d.ts.map +0 -1
- package/build/cc/VersionCC.js +0 -865
- package/build/cc/VersionCC.js.map +0 -1
- package/build/cc/WakeUpCC.d.ts +0 -150
- package/build/cc/WakeUpCC.d.ts.map +0 -1
- package/build/cc/WakeUpCC.js +0 -441
- package/build/cc/WakeUpCC.js.map +0 -1
- package/build/cc/WindowCoveringCC.d.ts +0 -315
- package/build/cc/WindowCoveringCC.d.ts.map +0 -1
- package/build/cc/WindowCoveringCC.js +0 -783
- package/build/cc/WindowCoveringCC.js.map +0 -1
- package/build/cc/ZWaveLongRangeCC.d.ts +0 -4
- package/build/cc/ZWaveLongRangeCC.d.ts.map +0 -1
- package/build/cc/ZWaveLongRangeCC.js +0 -20
- package/build/cc/ZWaveLongRangeCC.js.map +0 -1
- package/build/cc/ZWavePlusCC.d.ts +0 -163
- package/build/cc/ZWavePlusCC.d.ts.map +0 -1
- package/build/cc/ZWavePlusCC.js +0 -270
- package/build/cc/ZWavePlusCC.js.map +0 -1
- package/build/cc/ZWaveProtocolCC.d.ts +0 -344
- package/build/cc/ZWaveProtocolCC.d.ts.map +0 -1
- package/build/cc/ZWaveProtocolCC.js +0 -1033
- package/build/cc/ZWaveProtocolCC.js.map +0 -1
- package/build/cc/index.d.ts +0 -132
- package/build/cc/index.d.ts.map +0 -1
- package/build/cc/index.js +0 -627
- package/build/cc/index.js.map +0 -1
- package/build/cc/manufacturerProprietary/Decorators.d.ts +0 -64
- package/build/cc/manufacturerProprietary/Decorators.d.ts.map +0 -1
- package/build/cc/manufacturerProprietary/Decorators.js +0 -83
- package/build/cc/manufacturerProprietary/Decorators.js.map +0 -1
- package/build/cc/manufacturerProprietary/FibaroCC.d.ts +0 -79
- package/build/cc/manufacturerProprietary/FibaroCC.d.ts.map +0 -1
- package/build/cc/manufacturerProprietary/FibaroCC.js +0 -392
- package/build/cc/manufacturerProprietary/FibaroCC.js.map +0 -1
- package/build/index.d.ts +0 -15
- package/build/index.d.ts.map +0 -1
- package/build/index.js +0 -52
- package/build/index.js.map +0 -1
- package/build/index_safe.d.ts +0 -3
- package/build/index_safe.d.ts.map +0 -1
- package/build/index_safe.js +0 -20
- package/build/index_safe.js.map +0 -1
- package/build/lib/API.d.ts +0 -271
- package/build/lib/API.d.ts.map +0 -1
- package/build/lib/API.js +0 -458
- package/build/lib/API.js.map +0 -1
- package/build/lib/CommandClass.d.ts +0 -234
- package/build/lib/CommandClass.d.ts.map +0 -1
- package/build/lib/CommandClass.js +0 -788
- package/build/lib/CommandClass.js.map +0 -1
- package/build/lib/CommandClassDecorators.d.ts +0 -112
- package/build/lib/CommandClassDecorators.d.ts.map +0 -1
- package/build/lib/CommandClassDecorators.js +0 -243
- package/build/lib/CommandClassDecorators.js.map +0 -1
- package/build/lib/EncapsulatingCommandClass.d.ts +0 -22
- package/build/lib/EncapsulatingCommandClass.d.ts.map +0 -1
- package/build/lib/EncapsulatingCommandClass.js +0 -61
- package/build/lib/EncapsulatingCommandClass.js.map +0 -1
- package/build/lib/ICommandClassContainer.d.ts.map +0 -1
- package/build/lib/ICommandClassContainer.js +0 -3
- package/build/lib/ICommandClassContainer.js.map +0 -1
- package/build/lib/NotificationEventPayload.d.ts +0 -10
- package/build/lib/NotificationEventPayload.d.ts.map +0 -1
- package/build/lib/NotificationEventPayload.js +0 -10
- package/build/lib/NotificationEventPayload.js.map +0 -1
- package/build/lib/Security2/Extension.d.ts +0 -106
- package/build/lib/Security2/Extension.d.ts.map +0 -1
- package/build/lib/Security2/Extension.js +0 -303
- package/build/lib/Security2/Extension.js.map +0 -1
- package/build/lib/Security2/shared.d.ts.map +0 -1
- package/build/lib/Security2/shared.js +0 -43
- package/build/lib/Security2/shared.js.map +0 -1
- package/build/lib/SetValueResult.d.ts.map +0 -1
- package/build/lib/SetValueResult.js +0 -60
- package/build/lib/SetValueResult.js.map +0 -1
- package/build/lib/Values.d.ts +0 -223
- package/build/lib/Values.d.ts.map +0 -1
- package/build/lib/Values.js +0 -172
- package/build/lib/Values.js.map +0 -1
- package/build/lib/_Types.d.ts.map +0 -1
- package/build/lib/_Types.js +0 -1443
- package/build/lib/_Types.js.map +0 -1
- package/build/lib/serializers.d.ts +0 -34
- package/build/lib/serializers.d.ts.map +0 -1
- package/build/lib/serializers.js +0 -107
- package/build/lib/serializers.js.map +0 -1
- package/build/lib/utils.d.ts +0 -17
- package/build/lib/utils.d.ts.map +0 -1
- package/build/lib/utils.js +0 -860
- package/build/lib/utils.js.map +0 -1
- /package/build/{lib → cjs/lib}/ICommandClassContainer.d.ts +0 -0
- /package/build/{lib → cjs/lib}/Security2/shared.d.ts +0 -0
- /package/build/{lib → cjs/lib}/SetValueResult.d.ts +0 -0
- /package/build/{lib → cjs/lib}/_Types.d.ts +0 -0
|
@@ -0,0 +1,872 @@
|
|
|
1
|
+
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
2
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
3
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
4
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
5
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
6
|
+
var _, done = false;
|
|
7
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
8
|
+
var context = {};
|
|
9
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
10
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
11
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
12
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
13
|
+
if (kind === "accessor") {
|
|
14
|
+
if (result === void 0) continue;
|
|
15
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
16
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
17
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
18
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
19
|
+
}
|
|
20
|
+
else if (_ = accept(result)) {
|
|
21
|
+
if (kind === "field") initializers.unshift(_);
|
|
22
|
+
else descriptor[key] = _;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
26
|
+
done = true;
|
|
27
|
+
};
|
|
28
|
+
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
29
|
+
var useValue = arguments.length > 2;
|
|
30
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
31
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
32
|
+
}
|
|
33
|
+
return useValue ? value : void 0;
|
|
34
|
+
};
|
|
35
|
+
function __assertType(argName, typeName, boundHasError) {
|
|
36
|
+
const { ZWaveError, ZWaveErrorCodes } = require("@zwave-js/core");
|
|
37
|
+
if (boundHasError()) {
|
|
38
|
+
throw new ZWaveError(typeName ? `${argName} is not a ${typeName}` : `${argName} has the wrong type`, ZWaveErrorCodes.Argument_Invalid);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
const __assertType__optional_number = $o => {
|
|
42
|
+
function _number($o) {
|
|
43
|
+
return typeof $o !== "number" ? {} : null;
|
|
44
|
+
}
|
|
45
|
+
function optional__number($o) {
|
|
46
|
+
if ($o !== undefined) {
|
|
47
|
+
const error = _number($o);
|
|
48
|
+
if (error)
|
|
49
|
+
return error;
|
|
50
|
+
}
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return optional__number($o);
|
|
54
|
+
};
|
|
55
|
+
const __assertType__number = $o => {
|
|
56
|
+
function _number($o) {
|
|
57
|
+
return typeof $o !== "number" ? {} : null;
|
|
58
|
+
}
|
|
59
|
+
return _number($o);
|
|
60
|
+
};
|
|
61
|
+
const __assertType__su__number__2_eu = $o => {
|
|
62
|
+
function _number($o) {
|
|
63
|
+
return typeof $o !== "number" ? {} : null;
|
|
64
|
+
}
|
|
65
|
+
function _string($o) {
|
|
66
|
+
return typeof $o !== "string" ? {} : null;
|
|
67
|
+
}
|
|
68
|
+
function _2($o) {
|
|
69
|
+
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
70
|
+
return {};
|
|
71
|
+
if ("key" in $o && $o["key"] !== undefined) {
|
|
72
|
+
const error = _number($o["key"]);
|
|
73
|
+
if (error)
|
|
74
|
+
return error;
|
|
75
|
+
}
|
|
76
|
+
else
|
|
77
|
+
return {};
|
|
78
|
+
if ("label" in $o && $o["label"] !== undefined) {
|
|
79
|
+
const error = _string($o["label"]);
|
|
80
|
+
if (error)
|
|
81
|
+
return error;
|
|
82
|
+
}
|
|
83
|
+
else
|
|
84
|
+
return {};
|
|
85
|
+
if ("unit" in $o && $o["unit"] !== undefined) {
|
|
86
|
+
const error = _string($o["unit"]);
|
|
87
|
+
if (error)
|
|
88
|
+
return error;
|
|
89
|
+
}
|
|
90
|
+
if ("description" in $o && $o["description"] !== undefined) {
|
|
91
|
+
const error = _string($o["description"]);
|
|
92
|
+
if (error)
|
|
93
|
+
return error;
|
|
94
|
+
}
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
function su__number__2_eu($o) {
|
|
98
|
+
const conditions = [_number, _2];
|
|
99
|
+
for (const condition of conditions) {
|
|
100
|
+
const error = condition($o);
|
|
101
|
+
if (!error)
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
104
|
+
return {};
|
|
105
|
+
}
|
|
106
|
+
return su__number__2_eu($o);
|
|
107
|
+
};
|
|
108
|
+
import { encodeBitMask, getSensor, getSensorName, getSensorScale, getUnknownScale, timespan, } from "@zwave-js/core";
|
|
109
|
+
import { CommandClasses, MessagePriority, ValueMetadata, encodeFloatWithScale, parseBitMask, parseFloatWithScale, validatePayload, } from "@zwave-js/core/safe";
|
|
110
|
+
import { Bytes } from "@zwave-js/shared/safe";
|
|
111
|
+
import { num2hex } from "@zwave-js/shared/safe";
|
|
112
|
+
import { CCAPI, POLL_VALUE, PhysicalCCAPI, throwUnsupportedProperty, } from "../lib/API.js";
|
|
113
|
+
import { CommandClass, getEffectiveCCVersion, } from "../lib/CommandClass.js";
|
|
114
|
+
import { API, CCCommand, ccValueProperty, ccValues, commandClass, expectedCCResponse, implementedVersion, useSupervision, } from "../lib/CommandClassDecorators.js";
|
|
115
|
+
import { V } from "../lib/Values.js";
|
|
116
|
+
import { MultilevelSensorCommand, } from "../lib/_Types.js";
|
|
117
|
+
export const MultilevelSensorCCValues = Object.freeze({
|
|
118
|
+
...V.defineStaticCCValues(CommandClasses["Multilevel Sensor"], {
|
|
119
|
+
...V.staticProperty("supportedSensorTypes", undefined, {
|
|
120
|
+
internal: true,
|
|
121
|
+
}),
|
|
122
|
+
}),
|
|
123
|
+
...V.defineDynamicCCValues(CommandClasses["Multilevel Sensor"], {
|
|
124
|
+
...V.dynamicPropertyAndKeyWithName("supportedScales", "supportedScales", (sensorType) => sensorType, ({ property, propertyKey }) => property === "supportedScales"
|
|
125
|
+
&& typeof propertyKey === "number", undefined, { internal: true }),
|
|
126
|
+
...V.dynamicPropertyWithName("value",
|
|
127
|
+
// This should have been the sensor type, but it is too late to change now
|
|
128
|
+
// Maybe we can migrate this without breaking in the future
|
|
129
|
+
(sensorTypeName) => sensorTypeName, ({ property, propertyKey }) => typeof property === "string"
|
|
130
|
+
&& property !== "supportedSensorTypes"
|
|
131
|
+
&& property !== "supportedScales"
|
|
132
|
+
&& propertyKey == undefined, (sensorTypeName) => ({
|
|
133
|
+
// Just the base metadata, to be extended using a config manager
|
|
134
|
+
...ValueMetadata.ReadOnlyNumber,
|
|
135
|
+
label: sensorTypeName,
|
|
136
|
+
})),
|
|
137
|
+
}),
|
|
138
|
+
});
|
|
139
|
+
/**
|
|
140
|
+
* Determine the scale to use to query a sensor reading. Uses the user-preferred scale if given,
|
|
141
|
+
* followed by the most recently used scale, otherwile falls back to the first supported one.
|
|
142
|
+
*/
|
|
143
|
+
function getPreferredSensorScale(ctx, nodeId, endpointIndex, sensorType, supportedScales) {
|
|
144
|
+
const preferences = ctx.getUserPreferences();
|
|
145
|
+
const sensor = getSensor(sensorType);
|
|
146
|
+
// If the sensor type is unknown, we have no default. Use the user-provided scale or 0
|
|
147
|
+
if (!sensor) {
|
|
148
|
+
const preferred = preferences?.scales[sensorType];
|
|
149
|
+
// We cannot look up strings for unknown sensor types, so this must be a number or we use the fallback
|
|
150
|
+
if (typeof preferred !== "number")
|
|
151
|
+
return 0;
|
|
152
|
+
return preferred;
|
|
153
|
+
}
|
|
154
|
+
// Look up the preference for the scale
|
|
155
|
+
let preferred;
|
|
156
|
+
// Named scales apply to multiple sensor types. To be able to override the scale for single types
|
|
157
|
+
// we need to look at the preferences by sensor type first
|
|
158
|
+
preferred = preferences?.scales[sensorType];
|
|
159
|
+
// If the scale is named, we can then try to use the named preference
|
|
160
|
+
const scaleGroupName = sensor.scaleGroupName;
|
|
161
|
+
if (preferred == undefined && scaleGroupName) {
|
|
162
|
+
preferred = preferences?.scales[scaleGroupName];
|
|
163
|
+
}
|
|
164
|
+
// Then attempt reading the scale from the corresponding value
|
|
165
|
+
if (preferred == undefined) {
|
|
166
|
+
const sensorName = getSensorName(sensorType);
|
|
167
|
+
const sensorValue = MultilevelSensorCCValues.value(sensorName);
|
|
168
|
+
const metadata = ctx
|
|
169
|
+
.tryGetValueDB(nodeId)
|
|
170
|
+
?.getMetadata(sensorValue.endpoint(endpointIndex));
|
|
171
|
+
const scale = metadata?.ccSpecific?.scale;
|
|
172
|
+
if (typeof scale === "number" && supportedScales.includes(scale)) {
|
|
173
|
+
preferred = scale;
|
|
174
|
+
ctx.logNode(nodeId, {
|
|
175
|
+
endpoint: endpointIndex,
|
|
176
|
+
message: `No scale preference for sensor type ${sensorType}, using the last-used scale ${preferred}`,
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
// Then fall back to the first supported scale
|
|
181
|
+
if (preferred == undefined) {
|
|
182
|
+
preferred = supportedScales[0] ?? 0;
|
|
183
|
+
ctx.logNode(nodeId, {
|
|
184
|
+
endpoint: endpointIndex,
|
|
185
|
+
message: `No scale preference for sensor type ${sensorType}, using the first supported scale ${preferred}`,
|
|
186
|
+
});
|
|
187
|
+
return preferred;
|
|
188
|
+
}
|
|
189
|
+
// If the scale name or unit was given, try to look it up
|
|
190
|
+
if (typeof preferred === "string") {
|
|
191
|
+
for (const [key, scale] of Object.entries(sensor.scales)) {
|
|
192
|
+
if (scale.label === preferred || scale.unit === preferred) {
|
|
193
|
+
preferred = parseInt(key, 10);
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
if (typeof preferred === "string") {
|
|
199
|
+
// Looking up failed
|
|
200
|
+
ctx.logNode(nodeId, {
|
|
201
|
+
endpoint: endpointIndex,
|
|
202
|
+
message: `Preferred scale "${preferred}" for sensor type ${sensorType} not found, using the first supported scale ${supportedScales[0] ?? 0}`,
|
|
203
|
+
});
|
|
204
|
+
return supportedScales[0] ?? 0;
|
|
205
|
+
}
|
|
206
|
+
// We have a numeric scale key, nothing to look up. Make sure it is supported though
|
|
207
|
+
if (!supportedScales.length) {
|
|
208
|
+
// No info about supported scales, just use the preferred one
|
|
209
|
+
return preferred;
|
|
210
|
+
}
|
|
211
|
+
else if (!supportedScales.includes(preferred)) {
|
|
212
|
+
ctx.logNode(nodeId, {
|
|
213
|
+
endpoint: endpointIndex,
|
|
214
|
+
message: `Preferred scale ${preferred} not supported for sensor type ${sensorType}, using the first supported scale`,
|
|
215
|
+
});
|
|
216
|
+
return supportedScales[0];
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
return preferred;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
// @noSetValueAPI This CC is read-only
|
|
223
|
+
let MultilevelSensorCCAPI = (() => {
|
|
224
|
+
let _classDecorators = [API(CommandClasses["Multilevel Sensor"])];
|
|
225
|
+
let _classDescriptor;
|
|
226
|
+
let _classExtraInitializers = [];
|
|
227
|
+
let _classThis;
|
|
228
|
+
let _classSuper = PhysicalCCAPI;
|
|
229
|
+
var MultilevelSensorCCAPI = class extends _classSuper {
|
|
230
|
+
static { _classThis = this; }
|
|
231
|
+
static {
|
|
232
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
233
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
234
|
+
MultilevelSensorCCAPI = _classThis = _classDescriptor.value;
|
|
235
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
236
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
237
|
+
}
|
|
238
|
+
supportsCommand(cmd) {
|
|
239
|
+
switch (cmd) {
|
|
240
|
+
case MultilevelSensorCommand.Get:
|
|
241
|
+
case MultilevelSensorCommand.Report:
|
|
242
|
+
return true; // This is mandatory
|
|
243
|
+
case MultilevelSensorCommand.GetSupportedSensor:
|
|
244
|
+
case MultilevelSensorCommand.GetSupportedScale:
|
|
245
|
+
return this.version >= 5;
|
|
246
|
+
}
|
|
247
|
+
return super.supportsCommand(cmd);
|
|
248
|
+
}
|
|
249
|
+
get [POLL_VALUE]() {
|
|
250
|
+
return async function ({ property }) {
|
|
251
|
+
// Look up the necessary information
|
|
252
|
+
const valueId = {
|
|
253
|
+
commandClass: CommandClasses["Multilevel Sensor"],
|
|
254
|
+
endpoint: this.endpoint.index,
|
|
255
|
+
property,
|
|
256
|
+
};
|
|
257
|
+
const ccSpecific = this.tryGetValueDB()?.getMetadata(valueId)
|
|
258
|
+
?.ccSpecific;
|
|
259
|
+
if (!ccSpecific) {
|
|
260
|
+
throwUnsupportedProperty(this.ccId, property);
|
|
261
|
+
}
|
|
262
|
+
const { sensorType, scale } = ccSpecific;
|
|
263
|
+
return this.get(sensorType, scale);
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
async get(sensorType, scale) {
|
|
267
|
+
__assertType("sensorType", "(optional) number", __assertType__optional_number.bind(void 0, sensorType));
|
|
268
|
+
__assertType("scale", "(optional) number", __assertType__optional_number.bind(void 0, scale));
|
|
269
|
+
this.assertSupportsCommand(MultilevelSensorCommand, MultilevelSensorCommand.Get);
|
|
270
|
+
// Figure out the preferred scale if none was given
|
|
271
|
+
let preferredScale;
|
|
272
|
+
if (sensorType != undefined && scale == undefined) {
|
|
273
|
+
const supportedScales = this.tryGetValueDB()?.getValue({
|
|
274
|
+
commandClass: this.ccId,
|
|
275
|
+
endpoint: this.endpoint.index,
|
|
276
|
+
property: "supportedScales",
|
|
277
|
+
propertyKey: sensorType,
|
|
278
|
+
}) ?? [];
|
|
279
|
+
preferredScale = getPreferredSensorScale(this.host, this.endpoint.nodeId, this.endpoint.index, sensorType, supportedScales);
|
|
280
|
+
}
|
|
281
|
+
const cc = new MultilevelSensorCCGet({
|
|
282
|
+
nodeId: this.endpoint.nodeId,
|
|
283
|
+
endpointIndex: this.endpoint.index,
|
|
284
|
+
sensorType: sensorType,
|
|
285
|
+
scale: (scale ?? preferredScale),
|
|
286
|
+
});
|
|
287
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
288
|
+
if (!response)
|
|
289
|
+
return;
|
|
290
|
+
const responseScale = getSensorScale(response.type, response.scale);
|
|
291
|
+
if (sensorType == undefined) {
|
|
292
|
+
// Overload #1: return the full response
|
|
293
|
+
return {
|
|
294
|
+
type: response.type,
|
|
295
|
+
value: response.value,
|
|
296
|
+
scale: responseScale,
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
else if (scale == undefined) {
|
|
300
|
+
// Overload #2: return value and scale
|
|
301
|
+
return {
|
|
302
|
+
value: response.value,
|
|
303
|
+
scale: responseScale,
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
// Overload #3: return only the value
|
|
308
|
+
return response.value;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
async getSupportedSensorTypes() {
|
|
312
|
+
this.assertSupportsCommand(MultilevelSensorCommand, MultilevelSensorCommand.GetSupportedSensor);
|
|
313
|
+
const cc = new MultilevelSensorCCGetSupportedSensor({
|
|
314
|
+
nodeId: this.endpoint.nodeId,
|
|
315
|
+
endpointIndex: this.endpoint.index,
|
|
316
|
+
});
|
|
317
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
318
|
+
return response?.supportedSensorTypes;
|
|
319
|
+
}
|
|
320
|
+
async getSupportedScales(sensorType) {
|
|
321
|
+
__assertType("sensorType", "number", __assertType__number.bind(void 0, sensorType));
|
|
322
|
+
this.assertSupportsCommand(MultilevelSensorCommand, MultilevelSensorCommand.GetSupportedScale);
|
|
323
|
+
const cc = new MultilevelSensorCCGetSupportedScale({
|
|
324
|
+
nodeId: this.endpoint.nodeId,
|
|
325
|
+
endpointIndex: this.endpoint.index,
|
|
326
|
+
sensorType,
|
|
327
|
+
});
|
|
328
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
329
|
+
return response?.supportedScales;
|
|
330
|
+
}
|
|
331
|
+
async sendReport(sensorType, scale, value) {
|
|
332
|
+
__assertType("sensorType", "number", __assertType__number.bind(void 0, sensorType));
|
|
333
|
+
__assertType("scale", undefined, __assertType__su__number__2_eu.bind(void 0, scale));
|
|
334
|
+
__assertType("value", "number", __assertType__number.bind(void 0, value));
|
|
335
|
+
this.assertSupportsCommand(MultilevelSensorCommand, MultilevelSensorCommand.Report);
|
|
336
|
+
const cc = new MultilevelSensorCCReport({
|
|
337
|
+
nodeId: this.endpoint.nodeId,
|
|
338
|
+
endpointIndex: this.endpoint.index,
|
|
339
|
+
type: sensorType,
|
|
340
|
+
scale,
|
|
341
|
+
value,
|
|
342
|
+
});
|
|
343
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
return MultilevelSensorCCAPI = _classThis;
|
|
347
|
+
})();
|
|
348
|
+
export { MultilevelSensorCCAPI };
|
|
349
|
+
let MultilevelSensorCC = (() => {
|
|
350
|
+
let _classDecorators = [commandClass(CommandClasses["Multilevel Sensor"]), implementedVersion(11), ccValues(MultilevelSensorCCValues)];
|
|
351
|
+
let _classDescriptor;
|
|
352
|
+
let _classExtraInitializers = [];
|
|
353
|
+
let _classThis;
|
|
354
|
+
let _classSuper = CommandClass;
|
|
355
|
+
var MultilevelSensorCC = class extends _classSuper {
|
|
356
|
+
static { _classThis = this; }
|
|
357
|
+
static {
|
|
358
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
359
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
360
|
+
MultilevelSensorCC = _classThis = _classDescriptor.value;
|
|
361
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
362
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
363
|
+
}
|
|
364
|
+
async interview(ctx) {
|
|
365
|
+
const node = this.getNode(ctx);
|
|
366
|
+
const endpoint = this.getEndpoint(ctx);
|
|
367
|
+
const api = CCAPI.create(CommandClasses["Multilevel Sensor"], ctx, endpoint).withOptions({
|
|
368
|
+
priority: MessagePriority.NodeQuery,
|
|
369
|
+
});
|
|
370
|
+
ctx.logNode(node.id, {
|
|
371
|
+
endpoint: this.endpointIndex,
|
|
372
|
+
message: `Interviewing ${this.ccName}...`,
|
|
373
|
+
direction: "none",
|
|
374
|
+
});
|
|
375
|
+
if (api.version >= 5) {
|
|
376
|
+
// Query the supported sensor types
|
|
377
|
+
ctx.logNode(node.id, {
|
|
378
|
+
endpoint: this.endpointIndex,
|
|
379
|
+
message: "retrieving supported sensor types...",
|
|
380
|
+
direction: "outbound",
|
|
381
|
+
});
|
|
382
|
+
const sensorTypes = await api.getSupportedSensorTypes();
|
|
383
|
+
if (sensorTypes) {
|
|
384
|
+
const logMessage = "received supported sensor types:\n"
|
|
385
|
+
+ sensorTypes
|
|
386
|
+
.map((t) => getSensorName(t))
|
|
387
|
+
.map((name) => `· ${name}`)
|
|
388
|
+
.join("\n");
|
|
389
|
+
ctx.logNode(node.id, {
|
|
390
|
+
endpoint: this.endpointIndex,
|
|
391
|
+
message: logMessage,
|
|
392
|
+
direction: "inbound",
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
else {
|
|
396
|
+
ctx.logNode(node.id, {
|
|
397
|
+
endpoint: this.endpointIndex,
|
|
398
|
+
message: "Querying supported sensor types timed out, skipping interview...",
|
|
399
|
+
level: "warn",
|
|
400
|
+
});
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
403
|
+
// As well as the supported scales for each sensor
|
|
404
|
+
for (const type of sensorTypes) {
|
|
405
|
+
ctx.logNode(node.id, {
|
|
406
|
+
endpoint: this.endpointIndex,
|
|
407
|
+
message: `querying supported scales for ${getSensorName(type)} sensor`,
|
|
408
|
+
direction: "outbound",
|
|
409
|
+
});
|
|
410
|
+
const sensorScales = await api.getSupportedScales(type);
|
|
411
|
+
if (sensorScales) {
|
|
412
|
+
const logMessage = "received supported scales:\n"
|
|
413
|
+
+ sensorScales
|
|
414
|
+
.map((s) => (getSensorScale(type, s)
|
|
415
|
+
?? getUnknownScale(s)).label)
|
|
416
|
+
.map((name) => `· ${name}`)
|
|
417
|
+
.join("\n");
|
|
418
|
+
ctx.logNode(node.id, {
|
|
419
|
+
endpoint: this.endpointIndex,
|
|
420
|
+
message: logMessage,
|
|
421
|
+
direction: "inbound",
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
else {
|
|
425
|
+
ctx.logNode(node.id, {
|
|
426
|
+
endpoint: this.endpointIndex,
|
|
427
|
+
message: "Querying supported scales timed out, skipping interview...",
|
|
428
|
+
level: "warn",
|
|
429
|
+
});
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
await this.refreshValues(ctx);
|
|
435
|
+
// Remember that the interview is complete
|
|
436
|
+
this.setInterviewComplete(ctx, true);
|
|
437
|
+
}
|
|
438
|
+
async refreshValues(ctx) {
|
|
439
|
+
const node = this.getNode(ctx);
|
|
440
|
+
const endpoint = this.getEndpoint(ctx);
|
|
441
|
+
const api = CCAPI.create(CommandClasses["Multilevel Sensor"], ctx, endpoint).withOptions({
|
|
442
|
+
priority: MessagePriority.NodeQuery,
|
|
443
|
+
});
|
|
444
|
+
const valueDB = this.getValueDB(ctx);
|
|
445
|
+
if (api.version <= 4) {
|
|
446
|
+
// Sensors up to V4 only support a single value
|
|
447
|
+
ctx.logNode(node.id, {
|
|
448
|
+
endpoint: this.endpointIndex,
|
|
449
|
+
message: "querying current sensor reading...",
|
|
450
|
+
direction: "outbound",
|
|
451
|
+
});
|
|
452
|
+
const mlsResponse = await api.get();
|
|
453
|
+
if (mlsResponse) {
|
|
454
|
+
const sensorScale = getSensorScale(mlsResponse.type, mlsResponse.scale.key);
|
|
455
|
+
const logMessage = `received current sensor reading:
|
|
456
|
+
sensor type: ${getSensorName(mlsResponse.type)}
|
|
457
|
+
value: ${mlsResponse.value}${sensorScale?.unit ? ` ${sensorScale.unit}` : ""}`;
|
|
458
|
+
ctx.logNode(node.id, {
|
|
459
|
+
endpoint: this.endpointIndex,
|
|
460
|
+
message: logMessage,
|
|
461
|
+
direction: "inbound",
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
else {
|
|
466
|
+
// Query all sensor values
|
|
467
|
+
const sensorTypes = valueDB.getValue({
|
|
468
|
+
commandClass: this.ccId,
|
|
469
|
+
property: "supportedSensorTypes",
|
|
470
|
+
endpoint: this.endpointIndex,
|
|
471
|
+
}) || [];
|
|
472
|
+
for (const type of sensorTypes) {
|
|
473
|
+
ctx.logNode(node.id, {
|
|
474
|
+
endpoint: this.endpointIndex,
|
|
475
|
+
message: `querying ${getSensorName(type)} sensor reading...`,
|
|
476
|
+
direction: "outbound",
|
|
477
|
+
});
|
|
478
|
+
const value = await api.get(type);
|
|
479
|
+
if (value) {
|
|
480
|
+
const logMessage = `received current ${getSensorName(type)} sensor reading: ${value.value} ${value.scale.unit || ""}`;
|
|
481
|
+
ctx.logNode(node.id, {
|
|
482
|
+
endpoint: this.endpointIndex,
|
|
483
|
+
message: logMessage,
|
|
484
|
+
direction: "inbound",
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
shouldRefreshValues(ctx) {
|
|
491
|
+
// Poll the device when all of the supported values were last updated longer than 6 hours ago.
|
|
492
|
+
// This may lead to some values not being updated, but the user may have disabled some unnecessary
|
|
493
|
+
// reports to reduce traffic.
|
|
494
|
+
const valueDB = ctx.tryGetValueDB(this.nodeId);
|
|
495
|
+
if (!valueDB)
|
|
496
|
+
return true;
|
|
497
|
+
const values = this.getDefinedValueIDs(ctx).filter((v) => MultilevelSensorCCValues.value.is(v));
|
|
498
|
+
return values.every((v) => {
|
|
499
|
+
const lastUpdated = valueDB.getTimestamp(v);
|
|
500
|
+
return (lastUpdated == undefined
|
|
501
|
+
|| Date.now() - lastUpdated > timespan.hours(6));
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Returns which sensor types are supported.
|
|
506
|
+
* This only works AFTER the interview process
|
|
507
|
+
*/
|
|
508
|
+
static getSupportedSensorTypesCached(ctx, endpoint) {
|
|
509
|
+
return ctx
|
|
510
|
+
.getValueDB(endpoint.nodeId)
|
|
511
|
+
.getValue(MultilevelSensorCCValues.supportedSensorTypes.endpoint(endpoint.index));
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Returns which scales are supported for a given sensor type.
|
|
515
|
+
* This only works AFTER the interview process
|
|
516
|
+
*/
|
|
517
|
+
static getSupportedScalesCached(ctx, endpoint, sensorType) {
|
|
518
|
+
return ctx
|
|
519
|
+
.getValueDB(endpoint.nodeId)
|
|
520
|
+
.getValue(MultilevelSensorCCValues.supportedScales(sensorType).endpoint(endpoint.index));
|
|
521
|
+
}
|
|
522
|
+
translatePropertyKey(ctx, property, propertyKey) {
|
|
523
|
+
// TODO: check this
|
|
524
|
+
if (property === "values" && typeof propertyKey === "number") {
|
|
525
|
+
const sensor = getSensor(propertyKey);
|
|
526
|
+
if (sensor)
|
|
527
|
+
return sensor.label;
|
|
528
|
+
}
|
|
529
|
+
return super.translatePropertyKey(ctx, property, propertyKey);
|
|
530
|
+
}
|
|
531
|
+
};
|
|
532
|
+
return MultilevelSensorCC = _classThis;
|
|
533
|
+
})();
|
|
534
|
+
export { MultilevelSensorCC };
|
|
535
|
+
let MultilevelSensorCCReport = (() => {
|
|
536
|
+
let _classDecorators = [CCCommand(MultilevelSensorCommand.Report), useSupervision()];
|
|
537
|
+
let _classDescriptor;
|
|
538
|
+
let _classExtraInitializers = [];
|
|
539
|
+
let _classThis;
|
|
540
|
+
let _classSuper = MultilevelSensorCC;
|
|
541
|
+
var MultilevelSensorCCReport = class extends _classSuper {
|
|
542
|
+
static { _classThis = this; }
|
|
543
|
+
static {
|
|
544
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
545
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
546
|
+
MultilevelSensorCCReport = _classThis = _classDescriptor.value;
|
|
547
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
548
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
549
|
+
}
|
|
550
|
+
constructor(options) {
|
|
551
|
+
super(options);
|
|
552
|
+
this.type = options.type;
|
|
553
|
+
this.value = options.value;
|
|
554
|
+
this.scale = typeof options.scale === "number"
|
|
555
|
+
? options.scale
|
|
556
|
+
: options.scale.key;
|
|
557
|
+
}
|
|
558
|
+
static from(raw, ctx) {
|
|
559
|
+
validatePayload(raw.payload.length >= 1);
|
|
560
|
+
const type = raw.payload[0];
|
|
561
|
+
// parseFloatWithScale does its own validation
|
|
562
|
+
const { value, scale } = parseFloatWithScale(raw.payload.subarray(1));
|
|
563
|
+
return new this({
|
|
564
|
+
nodeId: ctx.sourceNodeId,
|
|
565
|
+
type,
|
|
566
|
+
value,
|
|
567
|
+
scale,
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
persistValues(ctx) {
|
|
571
|
+
if (!super.persistValues(ctx))
|
|
572
|
+
return false;
|
|
573
|
+
const sensor = getSensor(this.type);
|
|
574
|
+
const scale = getSensorScale(this.type, this.scale) ?? getUnknownScale(this.scale);
|
|
575
|
+
// Filter out unknown sensor types and scales, unless the strict validation is disabled
|
|
576
|
+
const measurementValidation = !ctx.getDeviceConfig?.(this.nodeId)?.compat?.disableStrictMeasurementValidation;
|
|
577
|
+
const ccVersion = getEffectiveCCVersion(ctx, this);
|
|
578
|
+
if (measurementValidation) {
|
|
579
|
+
// Filter out unsupported sensor types and scales if possible
|
|
580
|
+
if (ccVersion >= 5) {
|
|
581
|
+
const supportedSensorTypes = this.getValue(ctx, MultilevelSensorCCValues.supportedSensorTypes);
|
|
582
|
+
if (supportedSensorTypes?.length) {
|
|
583
|
+
validatePayload.withReason(`Unsupported sensor type ${getSensorName(this.type)} or corrupted data`)(supportedSensorTypes.includes(this.type));
|
|
584
|
+
}
|
|
585
|
+
const supportedScales = this.getValue(ctx, MultilevelSensorCCValues.supportedScales(this.type));
|
|
586
|
+
if (supportedScales?.length) {
|
|
587
|
+
validatePayload.withReason(`Unsupported scale ${scale.label} or corrupted data`)(supportedScales.includes(scale.key));
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
else {
|
|
591
|
+
// We support a higher CC version than the device, so any types and scales it uses should be known to us
|
|
592
|
+
// Filter out unknown ones.
|
|
593
|
+
validatePayload.withReason(`Unknown sensor type ${num2hex(this.type)} or corrupted data`)(!!sensor);
|
|
594
|
+
validatePayload.withReason(`Unknown scale ${num2hex(this.scale)} or corrupted data`)(scale.label !== getUnknownScale(this.scale).label);
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
const sensorName = getSensorName(this.type);
|
|
598
|
+
const sensorValue = MultilevelSensorCCValues.value(sensorName);
|
|
599
|
+
this.setMetadata(ctx, sensorValue, {
|
|
600
|
+
...sensorValue.meta,
|
|
601
|
+
unit: scale.unit,
|
|
602
|
+
ccSpecific: {
|
|
603
|
+
sensorType: this.type,
|
|
604
|
+
scale: scale.key,
|
|
605
|
+
},
|
|
606
|
+
});
|
|
607
|
+
this.setValue(ctx, sensorValue, this.value);
|
|
608
|
+
return true;
|
|
609
|
+
}
|
|
610
|
+
type;
|
|
611
|
+
scale;
|
|
612
|
+
value;
|
|
613
|
+
serialize(ctx) {
|
|
614
|
+
this.payload = Bytes.concat([
|
|
615
|
+
Bytes.from([this.type]),
|
|
616
|
+
encodeFloatWithScale(this.value, this.scale),
|
|
617
|
+
]);
|
|
618
|
+
return super.serialize(ctx);
|
|
619
|
+
}
|
|
620
|
+
toLogEntry(ctx) {
|
|
621
|
+
return {
|
|
622
|
+
...super.toLogEntry(ctx),
|
|
623
|
+
message: {
|
|
624
|
+
"sensor type": getSensorName(this.type),
|
|
625
|
+
scale: (getSensorScale(this.type, this.scale)
|
|
626
|
+
?? getUnknownScale(this.scale)).label,
|
|
627
|
+
value: this.value,
|
|
628
|
+
},
|
|
629
|
+
};
|
|
630
|
+
}
|
|
631
|
+
};
|
|
632
|
+
return MultilevelSensorCCReport = _classThis;
|
|
633
|
+
})();
|
|
634
|
+
export { MultilevelSensorCCReport };
|
|
635
|
+
const testResponseForMultilevelSensorGet = (sent, received) => {
|
|
636
|
+
// We expect a Multilevel Sensor Report that matches the requested sensor type (if a type was requested)
|
|
637
|
+
return sent.sensorType == undefined || received.type === sent.sensorType;
|
|
638
|
+
};
|
|
639
|
+
let MultilevelSensorCCGet = (() => {
|
|
640
|
+
let _classDecorators = [CCCommand(MultilevelSensorCommand.Get), expectedCCResponse(MultilevelSensorCCReport, testResponseForMultilevelSensorGet)];
|
|
641
|
+
let _classDescriptor;
|
|
642
|
+
let _classExtraInitializers = [];
|
|
643
|
+
let _classThis;
|
|
644
|
+
let _classSuper = MultilevelSensorCC;
|
|
645
|
+
var MultilevelSensorCCGet = class extends _classSuper {
|
|
646
|
+
static { _classThis = this; }
|
|
647
|
+
static {
|
|
648
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
649
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
650
|
+
MultilevelSensorCCGet = _classThis = _classDescriptor.value;
|
|
651
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
652
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
653
|
+
}
|
|
654
|
+
constructor(options) {
|
|
655
|
+
super(options);
|
|
656
|
+
if ("sensorType" in options) {
|
|
657
|
+
this.sensorType = options.sensorType;
|
|
658
|
+
this.scale = options.scale;
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
static from(raw, ctx) {
|
|
662
|
+
if (raw.payload.length >= 2) {
|
|
663
|
+
const sensorType = raw.payload[0];
|
|
664
|
+
const scale = (raw.payload[1] >> 3) & 0b11;
|
|
665
|
+
return new this({
|
|
666
|
+
nodeId: ctx.sourceNodeId,
|
|
667
|
+
sensorType,
|
|
668
|
+
scale,
|
|
669
|
+
});
|
|
670
|
+
}
|
|
671
|
+
else {
|
|
672
|
+
return new this({
|
|
673
|
+
nodeId: ctx.sourceNodeId,
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
sensorType;
|
|
678
|
+
scale;
|
|
679
|
+
serialize(ctx) {
|
|
680
|
+
if (this.sensorType != undefined
|
|
681
|
+
&& this.scale != undefined) {
|
|
682
|
+
this.payload = Bytes.from([
|
|
683
|
+
this.sensorType,
|
|
684
|
+
(this.scale & 0b11) << 3,
|
|
685
|
+
]);
|
|
686
|
+
}
|
|
687
|
+
return super.serialize(ctx);
|
|
688
|
+
}
|
|
689
|
+
toLogEntry(ctx) {
|
|
690
|
+
let message = {};
|
|
691
|
+
if (this.sensorType != undefined
|
|
692
|
+
&& this.scale != undefined) {
|
|
693
|
+
message = {
|
|
694
|
+
"sensor type": getSensorName(this.sensorType),
|
|
695
|
+
scale: (getSensorScale(this.sensorType, this.scale) ?? getUnknownScale(this.scale)).label,
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
return {
|
|
699
|
+
...super.toLogEntry(ctx),
|
|
700
|
+
message,
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
};
|
|
704
|
+
return MultilevelSensorCCGet = _classThis;
|
|
705
|
+
})();
|
|
706
|
+
export { MultilevelSensorCCGet };
|
|
707
|
+
let MultilevelSensorCCSupportedSensorReport = (() => {
|
|
708
|
+
let _classDecorators = [CCCommand(MultilevelSensorCommand.SupportedSensorReport), ccValueProperty("supportedSensorTypes", MultilevelSensorCCValues.supportedSensorTypes)];
|
|
709
|
+
let _classDescriptor;
|
|
710
|
+
let _classExtraInitializers = [];
|
|
711
|
+
let _classThis;
|
|
712
|
+
let _classSuper = MultilevelSensorCC;
|
|
713
|
+
var MultilevelSensorCCSupportedSensorReport = class extends _classSuper {
|
|
714
|
+
static { _classThis = this; }
|
|
715
|
+
static {
|
|
716
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
717
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
718
|
+
MultilevelSensorCCSupportedSensorReport = _classThis = _classDescriptor.value;
|
|
719
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
720
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
721
|
+
}
|
|
722
|
+
constructor(options) {
|
|
723
|
+
super(options);
|
|
724
|
+
this.supportedSensorTypes = options.supportedSensorTypes;
|
|
725
|
+
}
|
|
726
|
+
static from(raw, ctx) {
|
|
727
|
+
validatePayload(raw.payload.length >= 1);
|
|
728
|
+
const supportedSensorTypes = parseBitMask(raw.payload);
|
|
729
|
+
return new this({
|
|
730
|
+
nodeId: ctx.sourceNodeId,
|
|
731
|
+
supportedSensorTypes,
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
// TODO: Use this during interview to precreate values
|
|
735
|
+
supportedSensorTypes;
|
|
736
|
+
serialize(ctx) {
|
|
737
|
+
this.payload = encodeBitMask(this.supportedSensorTypes);
|
|
738
|
+
return super.serialize(ctx);
|
|
739
|
+
}
|
|
740
|
+
toLogEntry(ctx) {
|
|
741
|
+
return {
|
|
742
|
+
...super.toLogEntry(ctx),
|
|
743
|
+
message: {
|
|
744
|
+
"supported sensor types": this.supportedSensorTypes
|
|
745
|
+
.map((t) => `\n· ${getSensorName(t)}`)
|
|
746
|
+
.join(""),
|
|
747
|
+
},
|
|
748
|
+
};
|
|
749
|
+
}
|
|
750
|
+
};
|
|
751
|
+
return MultilevelSensorCCSupportedSensorReport = _classThis;
|
|
752
|
+
})();
|
|
753
|
+
export { MultilevelSensorCCSupportedSensorReport };
|
|
754
|
+
let MultilevelSensorCCGetSupportedSensor = (() => {
|
|
755
|
+
let _classDecorators = [CCCommand(MultilevelSensorCommand.GetSupportedSensor), expectedCCResponse(MultilevelSensorCCSupportedSensorReport)];
|
|
756
|
+
let _classDescriptor;
|
|
757
|
+
let _classExtraInitializers = [];
|
|
758
|
+
let _classThis;
|
|
759
|
+
let _classSuper = MultilevelSensorCC;
|
|
760
|
+
var MultilevelSensorCCGetSupportedSensor = class extends _classSuper {
|
|
761
|
+
static { _classThis = this; }
|
|
762
|
+
static {
|
|
763
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
764
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
765
|
+
MultilevelSensorCCGetSupportedSensor = _classThis = _classDescriptor.value;
|
|
766
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
767
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
768
|
+
}
|
|
769
|
+
};
|
|
770
|
+
return MultilevelSensorCCGetSupportedSensor = _classThis;
|
|
771
|
+
})();
|
|
772
|
+
export { MultilevelSensorCCGetSupportedSensor };
|
|
773
|
+
let MultilevelSensorCCSupportedScaleReport = (() => {
|
|
774
|
+
let _classDecorators = [CCCommand(MultilevelSensorCommand.SupportedScaleReport), ccValueProperty("supportedScales", MultilevelSensorCCValues.supportedScales, (self) => [self.sensorType])];
|
|
775
|
+
let _classDescriptor;
|
|
776
|
+
let _classExtraInitializers = [];
|
|
777
|
+
let _classThis;
|
|
778
|
+
let _classSuper = MultilevelSensorCC;
|
|
779
|
+
var MultilevelSensorCCSupportedScaleReport = class extends _classSuper {
|
|
780
|
+
static { _classThis = this; }
|
|
781
|
+
static {
|
|
782
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
783
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
784
|
+
MultilevelSensorCCSupportedScaleReport = _classThis = _classDescriptor.value;
|
|
785
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
786
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
787
|
+
}
|
|
788
|
+
constructor(options) {
|
|
789
|
+
super(options);
|
|
790
|
+
this.sensorType = options.sensorType;
|
|
791
|
+
this.supportedScales = options.supportedScales;
|
|
792
|
+
}
|
|
793
|
+
static from(raw, ctx) {
|
|
794
|
+
validatePayload(raw.payload.length >= 2);
|
|
795
|
+
const sensorType = raw.payload[0];
|
|
796
|
+
const supportedScales = parseBitMask(Bytes.from([raw.payload[1] & 0b1111]), 0);
|
|
797
|
+
return new this({
|
|
798
|
+
nodeId: ctx.sourceNodeId,
|
|
799
|
+
sensorType,
|
|
800
|
+
supportedScales,
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
sensorType;
|
|
804
|
+
supportedScales;
|
|
805
|
+
serialize(ctx) {
|
|
806
|
+
this.payload = Bytes.concat([
|
|
807
|
+
Bytes.from([this.sensorType]),
|
|
808
|
+
encodeBitMask(this.supportedScales, 4, 0),
|
|
809
|
+
]);
|
|
810
|
+
return super.serialize(ctx);
|
|
811
|
+
}
|
|
812
|
+
toLogEntry(ctx) {
|
|
813
|
+
return {
|
|
814
|
+
...super.toLogEntry(ctx),
|
|
815
|
+
message: {
|
|
816
|
+
"sensor type": getSensorName(this.sensorType),
|
|
817
|
+
"supported scales": this.supportedScales
|
|
818
|
+
.map((s) => `\n· ${(getSensorScale(this.sensorType, s)
|
|
819
|
+
?? getUnknownScale(s)).label}`)
|
|
820
|
+
.join(""),
|
|
821
|
+
},
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
};
|
|
825
|
+
return MultilevelSensorCCSupportedScaleReport = _classThis;
|
|
826
|
+
})();
|
|
827
|
+
export { MultilevelSensorCCSupportedScaleReport };
|
|
828
|
+
let MultilevelSensorCCGetSupportedScale = (() => {
|
|
829
|
+
let _classDecorators = [CCCommand(MultilevelSensorCommand.GetSupportedScale), expectedCCResponse(MultilevelSensorCCSupportedScaleReport)];
|
|
830
|
+
let _classDescriptor;
|
|
831
|
+
let _classExtraInitializers = [];
|
|
832
|
+
let _classThis;
|
|
833
|
+
let _classSuper = MultilevelSensorCC;
|
|
834
|
+
var MultilevelSensorCCGetSupportedScale = class extends _classSuper {
|
|
835
|
+
static { _classThis = this; }
|
|
836
|
+
static {
|
|
837
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
838
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
839
|
+
MultilevelSensorCCGetSupportedScale = _classThis = _classDescriptor.value;
|
|
840
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
841
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
842
|
+
}
|
|
843
|
+
constructor(options) {
|
|
844
|
+
super(options);
|
|
845
|
+
this.sensorType = options.sensorType;
|
|
846
|
+
}
|
|
847
|
+
static from(raw, ctx) {
|
|
848
|
+
validatePayload(raw.payload.length >= 1);
|
|
849
|
+
const sensorType = raw.payload[0];
|
|
850
|
+
return new this({
|
|
851
|
+
nodeId: ctx.sourceNodeId,
|
|
852
|
+
sensorType,
|
|
853
|
+
});
|
|
854
|
+
}
|
|
855
|
+
sensorType;
|
|
856
|
+
serialize(ctx) {
|
|
857
|
+
this.payload = Bytes.from([this.sensorType]);
|
|
858
|
+
return super.serialize(ctx);
|
|
859
|
+
}
|
|
860
|
+
toLogEntry(ctx) {
|
|
861
|
+
return {
|
|
862
|
+
...super.toLogEntry(ctx),
|
|
863
|
+
message: {
|
|
864
|
+
"sensor type": getSensorName(this.sensorType),
|
|
865
|
+
},
|
|
866
|
+
};
|
|
867
|
+
}
|
|
868
|
+
};
|
|
869
|
+
return MultilevelSensorCCGetSupportedScale = _classThis;
|
|
870
|
+
})();
|
|
871
|
+
export { MultilevelSensorCCGetSupportedScale };
|
|
872
|
+
//# sourceMappingURL=MultilevelSensorCC.js.map
|