@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,1520 @@
|
|
|
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
|
+
import { CommandClasses, MAX_NODES, MAX_REPEATERS, ZWaveDataRate, ZWaveError, ZWaveErrorCodes, encodeBitMask, encodeNodeInformationFrame, encodeNodeProtocolInfoAndDeviceClass, parseBitMask, parseNodeInformationFrame, parseNodeProtocolInfoAndDeviceClass, validatePayload, } from "@zwave-js/core";
|
|
36
|
+
import { Bytes } from "@zwave-js/shared/safe";
|
|
37
|
+
import { CommandClass } from "../lib/CommandClass.js";
|
|
38
|
+
import { CCCommand, commandClass, expectedCCResponse, implementedVersion, } from "../lib/CommandClassDecorators.js";
|
|
39
|
+
import { WakeUpTime, ZWaveProtocolCommand, parseWakeUpTime, } from "../lib/_Types.js";
|
|
40
|
+
var DataRateBitmask;
|
|
41
|
+
(function (DataRateBitmask) {
|
|
42
|
+
DataRateBitmask[DataRateBitmask["9k6"] = 1] = "9k6";
|
|
43
|
+
DataRateBitmask[DataRateBitmask["40k"] = 2] = "40k";
|
|
44
|
+
DataRateBitmask[DataRateBitmask["100k"] = 4] = "100k";
|
|
45
|
+
})(DataRateBitmask || (DataRateBitmask = {}));
|
|
46
|
+
function dataRate2Bitmask(dataRate) {
|
|
47
|
+
return dataRate === ZWaveDataRate["100k"]
|
|
48
|
+
? DataRateBitmask["100k"]
|
|
49
|
+
: dataRate === ZWaveDataRate["40k"]
|
|
50
|
+
? DataRateBitmask["40k"]
|
|
51
|
+
: DataRateBitmask["9k6"];
|
|
52
|
+
}
|
|
53
|
+
function bitmask2DataRate(mask) {
|
|
54
|
+
return mask === DataRateBitmask["100k"]
|
|
55
|
+
? ZWaveDataRate["100k"]
|
|
56
|
+
: mask === DataRateBitmask["40k"]
|
|
57
|
+
? ZWaveDataRate["40k"]
|
|
58
|
+
: ZWaveDataRate["9k6"];
|
|
59
|
+
}
|
|
60
|
+
let ZWaveProtocolCC = (() => {
|
|
61
|
+
let _classDecorators = [commandClass(CommandClasses["Z-Wave Protocol"]), implementedVersion(1)];
|
|
62
|
+
let _classDescriptor;
|
|
63
|
+
let _classExtraInitializers = [];
|
|
64
|
+
let _classThis;
|
|
65
|
+
let _classSuper = CommandClass;
|
|
66
|
+
var ZWaveProtocolCC = class extends _classSuper {
|
|
67
|
+
static { _classThis = this; }
|
|
68
|
+
static {
|
|
69
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
70
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
71
|
+
ZWaveProtocolCC = _classThis = _classDescriptor.value;
|
|
72
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
73
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
return ZWaveProtocolCC = _classThis;
|
|
77
|
+
})();
|
|
78
|
+
export { ZWaveProtocolCC };
|
|
79
|
+
let ZWaveProtocolCCNodeInformationFrame = (() => {
|
|
80
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.NodeInformationFrame)];
|
|
81
|
+
let _classDescriptor;
|
|
82
|
+
let _classExtraInitializers = [];
|
|
83
|
+
let _classThis;
|
|
84
|
+
let _classSuper = ZWaveProtocolCC;
|
|
85
|
+
var ZWaveProtocolCCNodeInformationFrame = class extends _classSuper {
|
|
86
|
+
static { _classThis = this; }
|
|
87
|
+
static {
|
|
88
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
89
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
90
|
+
ZWaveProtocolCCNodeInformationFrame = _classThis = _classDescriptor.value;
|
|
91
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
92
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
93
|
+
}
|
|
94
|
+
constructor(options) {
|
|
95
|
+
super(options);
|
|
96
|
+
this.basicDeviceClass = options.basicDeviceClass;
|
|
97
|
+
this.genericDeviceClass = options.genericDeviceClass;
|
|
98
|
+
this.specificDeviceClass = options.specificDeviceClass;
|
|
99
|
+
this.isListening = options.isListening;
|
|
100
|
+
this.isFrequentListening = options.isFrequentListening;
|
|
101
|
+
this.isRouting = options.isRouting;
|
|
102
|
+
this.supportedDataRates = options.supportedDataRates;
|
|
103
|
+
this.protocolVersion = options.protocolVersion;
|
|
104
|
+
this.optionalFunctionality = options.optionalFunctionality;
|
|
105
|
+
this.nodeType = options.nodeType;
|
|
106
|
+
this.supportsSecurity = options.supportsSecurity;
|
|
107
|
+
this.supportsBeaming = options.supportsBeaming;
|
|
108
|
+
this.supportedCCs = options.supportedCCs;
|
|
109
|
+
}
|
|
110
|
+
static from(raw, ctx) {
|
|
111
|
+
const nif = parseNodeInformationFrame(raw.payload);
|
|
112
|
+
return new this({
|
|
113
|
+
nodeId: ctx.sourceNodeId,
|
|
114
|
+
...nif,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
basicDeviceClass;
|
|
118
|
+
genericDeviceClass;
|
|
119
|
+
specificDeviceClass;
|
|
120
|
+
isListening;
|
|
121
|
+
isFrequentListening;
|
|
122
|
+
isRouting;
|
|
123
|
+
supportedDataRates;
|
|
124
|
+
protocolVersion;
|
|
125
|
+
optionalFunctionality;
|
|
126
|
+
nodeType;
|
|
127
|
+
supportsSecurity;
|
|
128
|
+
supportsBeaming;
|
|
129
|
+
supportedCCs;
|
|
130
|
+
serialize(ctx) {
|
|
131
|
+
this.payload = encodeNodeInformationFrame(this);
|
|
132
|
+
return super.serialize(ctx);
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
return ZWaveProtocolCCNodeInformationFrame = _classThis;
|
|
136
|
+
})();
|
|
137
|
+
export { ZWaveProtocolCCNodeInformationFrame };
|
|
138
|
+
let ZWaveProtocolCCRequestNodeInformationFrame = (() => {
|
|
139
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.RequestNodeInformationFrame), expectedCCResponse(ZWaveProtocolCCNodeInformationFrame)];
|
|
140
|
+
let _classDescriptor;
|
|
141
|
+
let _classExtraInitializers = [];
|
|
142
|
+
let _classThis;
|
|
143
|
+
let _classSuper = ZWaveProtocolCC;
|
|
144
|
+
var ZWaveProtocolCCRequestNodeInformationFrame = class extends _classSuper {
|
|
145
|
+
static { _classThis = this; }
|
|
146
|
+
static {
|
|
147
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
148
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
149
|
+
ZWaveProtocolCCRequestNodeInformationFrame = _classThis = _classDescriptor.value;
|
|
150
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
151
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
return ZWaveProtocolCCRequestNodeInformationFrame = _classThis;
|
|
155
|
+
})();
|
|
156
|
+
export { ZWaveProtocolCCRequestNodeInformationFrame };
|
|
157
|
+
let ZWaveProtocolCCAssignIDs = (() => {
|
|
158
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.AssignIDs)];
|
|
159
|
+
let _classDescriptor;
|
|
160
|
+
let _classExtraInitializers = [];
|
|
161
|
+
let _classThis;
|
|
162
|
+
let _classSuper = ZWaveProtocolCC;
|
|
163
|
+
var ZWaveProtocolCCAssignIDs = class extends _classSuper {
|
|
164
|
+
static { _classThis = this; }
|
|
165
|
+
static {
|
|
166
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
167
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
168
|
+
ZWaveProtocolCCAssignIDs = _classThis = _classDescriptor.value;
|
|
169
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
170
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
171
|
+
}
|
|
172
|
+
constructor(options) {
|
|
173
|
+
super(options);
|
|
174
|
+
this.assignedNodeId = options.assignedNodeId;
|
|
175
|
+
this.homeId = options.homeId;
|
|
176
|
+
}
|
|
177
|
+
static from(raw, ctx) {
|
|
178
|
+
validatePayload(raw.payload.length >= 5);
|
|
179
|
+
const assignedNodeId = raw.payload[0];
|
|
180
|
+
const homeId = raw.payload.readUInt32BE(1);
|
|
181
|
+
return new this({
|
|
182
|
+
nodeId: ctx.sourceNodeId,
|
|
183
|
+
assignedNodeId,
|
|
184
|
+
homeId,
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
assignedNodeId;
|
|
188
|
+
homeId;
|
|
189
|
+
serialize(ctx) {
|
|
190
|
+
this.payload = new Bytes(5);
|
|
191
|
+
this.payload[0] = this.assignedNodeId;
|
|
192
|
+
this.payload.writeUInt32BE(this.homeId, 1);
|
|
193
|
+
return super.serialize(ctx);
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
return ZWaveProtocolCCAssignIDs = _classThis;
|
|
197
|
+
})();
|
|
198
|
+
export { ZWaveProtocolCCAssignIDs };
|
|
199
|
+
let ZWaveProtocolCCFindNodesInRange = (() => {
|
|
200
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.FindNodesInRange)];
|
|
201
|
+
let _classDescriptor;
|
|
202
|
+
let _classExtraInitializers = [];
|
|
203
|
+
let _classThis;
|
|
204
|
+
let _classSuper = ZWaveProtocolCC;
|
|
205
|
+
var ZWaveProtocolCCFindNodesInRange = class extends _classSuper {
|
|
206
|
+
static { _classThis = this; }
|
|
207
|
+
static {
|
|
208
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
209
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
210
|
+
ZWaveProtocolCCFindNodesInRange = _classThis = _classDescriptor.value;
|
|
211
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
212
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
213
|
+
}
|
|
214
|
+
constructor(options) {
|
|
215
|
+
super(options);
|
|
216
|
+
this.candidateNodeIds = options.candidateNodeIds;
|
|
217
|
+
this.wakeUpTime = options.wakeUpTime;
|
|
218
|
+
this.dataRate = options.dataRate ?? ZWaveDataRate["9k6"];
|
|
219
|
+
}
|
|
220
|
+
static from(raw, ctx) {
|
|
221
|
+
validatePayload(raw.payload.length >= 1);
|
|
222
|
+
const speedPresent = raw.payload[0] & 0b1000_0000;
|
|
223
|
+
const bitmaskLength = raw.payload[0] & 0b0001_1111;
|
|
224
|
+
validatePayload(raw.payload.length >= 1 + bitmaskLength);
|
|
225
|
+
const candidateNodeIds = parseBitMask(raw.payload.subarray(1, 1 + bitmaskLength));
|
|
226
|
+
const rest = raw.payload.subarray(1 + bitmaskLength);
|
|
227
|
+
let dataRate;
|
|
228
|
+
let wakeUpTime;
|
|
229
|
+
if (speedPresent) {
|
|
230
|
+
validatePayload(rest.length >= 1);
|
|
231
|
+
if (rest.length === 1) {
|
|
232
|
+
dataRate = rest[0] & 0b111;
|
|
233
|
+
wakeUpTime = WakeUpTime.None;
|
|
234
|
+
}
|
|
235
|
+
else if (rest.length === 2) {
|
|
236
|
+
wakeUpTime = parseWakeUpTime(rest[0]);
|
|
237
|
+
dataRate = rest[1] & 0b111;
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
validatePayload.fail("Invalid payload length");
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
else if (rest.length >= 1) {
|
|
244
|
+
wakeUpTime = parseWakeUpTime(rest[0]);
|
|
245
|
+
dataRate = ZWaveDataRate["9k6"];
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
wakeUpTime = WakeUpTime.None;
|
|
249
|
+
dataRate = ZWaveDataRate["9k6"];
|
|
250
|
+
}
|
|
251
|
+
return new this({
|
|
252
|
+
nodeId: ctx.sourceNodeId,
|
|
253
|
+
candidateNodeIds,
|
|
254
|
+
dataRate,
|
|
255
|
+
wakeUpTime,
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
candidateNodeIds;
|
|
259
|
+
wakeUpTime;
|
|
260
|
+
dataRate;
|
|
261
|
+
serialize(ctx) {
|
|
262
|
+
const nodesBitmask = encodeBitMask(this.candidateNodeIds, MAX_NODES);
|
|
263
|
+
const speedAndLength = 0b1000_0000 | nodesBitmask.length;
|
|
264
|
+
this.payload = Bytes.concat([
|
|
265
|
+
Bytes.from([speedAndLength]),
|
|
266
|
+
nodesBitmask,
|
|
267
|
+
Bytes.from([this.wakeUpTime, this.dataRate]),
|
|
268
|
+
]);
|
|
269
|
+
return super.serialize(ctx);
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
return ZWaveProtocolCCFindNodesInRange = _classThis;
|
|
273
|
+
})();
|
|
274
|
+
export { ZWaveProtocolCCFindNodesInRange };
|
|
275
|
+
let ZWaveProtocolCCRangeInfo = (() => {
|
|
276
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.RangeInfo)];
|
|
277
|
+
let _classDescriptor;
|
|
278
|
+
let _classExtraInitializers = [];
|
|
279
|
+
let _classThis;
|
|
280
|
+
let _classSuper = ZWaveProtocolCC;
|
|
281
|
+
var ZWaveProtocolCCRangeInfo = class extends _classSuper {
|
|
282
|
+
static { _classThis = this; }
|
|
283
|
+
static {
|
|
284
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
285
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
286
|
+
ZWaveProtocolCCRangeInfo = _classThis = _classDescriptor.value;
|
|
287
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
288
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
289
|
+
}
|
|
290
|
+
constructor(options) {
|
|
291
|
+
super(options);
|
|
292
|
+
this.neighborNodeIds = options.neighborNodeIds;
|
|
293
|
+
this.wakeUpTime = options.wakeUpTime;
|
|
294
|
+
}
|
|
295
|
+
static from(raw, ctx) {
|
|
296
|
+
validatePayload(raw.payload.length >= 1);
|
|
297
|
+
const bitmaskLength = raw.payload[0] & 0b0001_1111;
|
|
298
|
+
validatePayload(raw.payload.length >= 1 + bitmaskLength);
|
|
299
|
+
const neighborNodeIds = parseBitMask(raw.payload.subarray(1, 1 + bitmaskLength));
|
|
300
|
+
let wakeUpTime;
|
|
301
|
+
if (raw.payload.length >= 2 + bitmaskLength) {
|
|
302
|
+
wakeUpTime = parseWakeUpTime(raw.payload[1 + bitmaskLength]);
|
|
303
|
+
}
|
|
304
|
+
return new this({
|
|
305
|
+
nodeId: ctx.sourceNodeId,
|
|
306
|
+
neighborNodeIds,
|
|
307
|
+
wakeUpTime,
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
neighborNodeIds;
|
|
311
|
+
wakeUpTime;
|
|
312
|
+
serialize(ctx) {
|
|
313
|
+
const nodesBitmask = encodeBitMask(this.neighborNodeIds, MAX_NODES);
|
|
314
|
+
this.payload = Bytes.concat([
|
|
315
|
+
Bytes.from([nodesBitmask.length]),
|
|
316
|
+
nodesBitmask,
|
|
317
|
+
this.wakeUpTime != undefined
|
|
318
|
+
? Bytes.from([this.wakeUpTime])
|
|
319
|
+
: new Bytes(),
|
|
320
|
+
]);
|
|
321
|
+
return super.serialize(ctx);
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
return ZWaveProtocolCCRangeInfo = _classThis;
|
|
325
|
+
})();
|
|
326
|
+
export { ZWaveProtocolCCRangeInfo };
|
|
327
|
+
let ZWaveProtocolCCGetNodesInRange = (() => {
|
|
328
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.GetNodesInRange), expectedCCResponse(ZWaveProtocolCCRangeInfo)];
|
|
329
|
+
let _classDescriptor;
|
|
330
|
+
let _classExtraInitializers = [];
|
|
331
|
+
let _classThis;
|
|
332
|
+
let _classSuper = ZWaveProtocolCC;
|
|
333
|
+
var ZWaveProtocolCCGetNodesInRange = class extends _classSuper {
|
|
334
|
+
static { _classThis = this; }
|
|
335
|
+
static {
|
|
336
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
337
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
338
|
+
ZWaveProtocolCCGetNodesInRange = _classThis = _classDescriptor.value;
|
|
339
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
340
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
return ZWaveProtocolCCGetNodesInRange = _classThis;
|
|
344
|
+
})();
|
|
345
|
+
export { ZWaveProtocolCCGetNodesInRange };
|
|
346
|
+
let ZWaveProtocolCCCommandComplete = (() => {
|
|
347
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.CommandComplete)];
|
|
348
|
+
let _classDescriptor;
|
|
349
|
+
let _classExtraInitializers = [];
|
|
350
|
+
let _classThis;
|
|
351
|
+
let _classSuper = ZWaveProtocolCC;
|
|
352
|
+
var ZWaveProtocolCCCommandComplete = class extends _classSuper {
|
|
353
|
+
static { _classThis = this; }
|
|
354
|
+
static {
|
|
355
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
356
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
357
|
+
ZWaveProtocolCCCommandComplete = _classThis = _classDescriptor.value;
|
|
358
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
359
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
360
|
+
}
|
|
361
|
+
constructor(options) {
|
|
362
|
+
super(options);
|
|
363
|
+
this.sequenceNumber = options.sequenceNumber;
|
|
364
|
+
}
|
|
365
|
+
static from(raw, ctx) {
|
|
366
|
+
validatePayload(raw.payload.length >= 1);
|
|
367
|
+
const sequenceNumber = raw.payload[0];
|
|
368
|
+
return new this({
|
|
369
|
+
nodeId: ctx.sourceNodeId,
|
|
370
|
+
sequenceNumber,
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
sequenceNumber;
|
|
374
|
+
serialize(ctx) {
|
|
375
|
+
this.payload = Bytes.from([this.sequenceNumber]);
|
|
376
|
+
return super.serialize(ctx);
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
return ZWaveProtocolCCCommandComplete = _classThis;
|
|
380
|
+
})();
|
|
381
|
+
export { ZWaveProtocolCCCommandComplete };
|
|
382
|
+
let ZWaveProtocolCCTransferPresentation = (() => {
|
|
383
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.TransferPresentation)];
|
|
384
|
+
let _classDescriptor;
|
|
385
|
+
let _classExtraInitializers = [];
|
|
386
|
+
let _classThis;
|
|
387
|
+
let _classSuper = ZWaveProtocolCC;
|
|
388
|
+
var ZWaveProtocolCCTransferPresentation = class extends _classSuper {
|
|
389
|
+
static { _classThis = this; }
|
|
390
|
+
static {
|
|
391
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
392
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
393
|
+
ZWaveProtocolCCTransferPresentation = _classThis = _classDescriptor.value;
|
|
394
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
395
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
396
|
+
}
|
|
397
|
+
constructor(options) {
|
|
398
|
+
super(options);
|
|
399
|
+
if (options.includeNode && options.excludeNode) {
|
|
400
|
+
throw new ZWaveError(`${this.constructor.name}: the includeNode and excludeNode options cannot both be true`, ZWaveErrorCodes.Argument_Invalid);
|
|
401
|
+
}
|
|
402
|
+
this.supportsNWI = options.supportsNWI;
|
|
403
|
+
this.includeNode = options.includeNode;
|
|
404
|
+
this.excludeNode = options.excludeNode;
|
|
405
|
+
}
|
|
406
|
+
static from(raw, ctx) {
|
|
407
|
+
validatePayload(raw.payload.length >= 1);
|
|
408
|
+
const option = raw.payload[0];
|
|
409
|
+
const supportsNWI = !!(option & 0b0001);
|
|
410
|
+
const excludeNode = !!(option & 0b0010);
|
|
411
|
+
const includeNode = !!(option & 0b0100);
|
|
412
|
+
return new this({
|
|
413
|
+
nodeId: ctx.sourceNodeId,
|
|
414
|
+
supportsNWI,
|
|
415
|
+
excludeNode,
|
|
416
|
+
includeNode,
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
supportsNWI;
|
|
420
|
+
includeNode;
|
|
421
|
+
excludeNode;
|
|
422
|
+
serialize(ctx) {
|
|
423
|
+
this.payload = Bytes.from([
|
|
424
|
+
(this.supportsNWI ? 0b0001 : 0)
|
|
425
|
+
| (this.excludeNode ? 0b0010 : 0)
|
|
426
|
+
| (this.includeNode ? 0b0100 : 0),
|
|
427
|
+
]);
|
|
428
|
+
return super.serialize(ctx);
|
|
429
|
+
}
|
|
430
|
+
};
|
|
431
|
+
return ZWaveProtocolCCTransferPresentation = _classThis;
|
|
432
|
+
})();
|
|
433
|
+
export { ZWaveProtocolCCTransferPresentation };
|
|
434
|
+
let ZWaveProtocolCCTransferNodeInformation = (() => {
|
|
435
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.TransferNodeInformation)];
|
|
436
|
+
let _classDescriptor;
|
|
437
|
+
let _classExtraInitializers = [];
|
|
438
|
+
let _classThis;
|
|
439
|
+
let _classSuper = ZWaveProtocolCC;
|
|
440
|
+
var ZWaveProtocolCCTransferNodeInformation = class extends _classSuper {
|
|
441
|
+
static { _classThis = this; }
|
|
442
|
+
static {
|
|
443
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
444
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
445
|
+
ZWaveProtocolCCTransferNodeInformation = _classThis = _classDescriptor.value;
|
|
446
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
447
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
448
|
+
}
|
|
449
|
+
constructor(options) {
|
|
450
|
+
super(options);
|
|
451
|
+
this.sequenceNumber = options.sequenceNumber;
|
|
452
|
+
this.sourceNodeId = options.sourceNodeId;
|
|
453
|
+
this.basicDeviceClass = options.basicDeviceClass;
|
|
454
|
+
this.genericDeviceClass = options.genericDeviceClass;
|
|
455
|
+
this.specificDeviceClass = options.specificDeviceClass;
|
|
456
|
+
this.isListening = options.isListening;
|
|
457
|
+
this.isFrequentListening = options.isFrequentListening;
|
|
458
|
+
this.isRouting = options.isRouting;
|
|
459
|
+
this.supportedDataRates = options.supportedDataRates;
|
|
460
|
+
this.protocolVersion = options.protocolVersion;
|
|
461
|
+
this.optionalFunctionality = options.optionalFunctionality;
|
|
462
|
+
this.nodeType = options.nodeType;
|
|
463
|
+
this.supportsSecurity = options.supportsSecurity;
|
|
464
|
+
this.supportsBeaming = options.supportsBeaming;
|
|
465
|
+
}
|
|
466
|
+
static from(raw, ctx) {
|
|
467
|
+
validatePayload(raw.payload.length >= 2);
|
|
468
|
+
const sequenceNumber = raw.payload[0];
|
|
469
|
+
const sourceNodeId = raw.payload[1];
|
|
470
|
+
const { info } = parseNodeProtocolInfoAndDeviceClass(raw.payload.subarray(2));
|
|
471
|
+
return new this({
|
|
472
|
+
nodeId: ctx.sourceNodeId,
|
|
473
|
+
sequenceNumber,
|
|
474
|
+
sourceNodeId,
|
|
475
|
+
...info,
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
sequenceNumber;
|
|
479
|
+
sourceNodeId;
|
|
480
|
+
basicDeviceClass;
|
|
481
|
+
genericDeviceClass;
|
|
482
|
+
specificDeviceClass;
|
|
483
|
+
isListening;
|
|
484
|
+
isFrequentListening;
|
|
485
|
+
isRouting;
|
|
486
|
+
supportedDataRates;
|
|
487
|
+
protocolVersion;
|
|
488
|
+
optionalFunctionality;
|
|
489
|
+
nodeType;
|
|
490
|
+
supportsSecurity;
|
|
491
|
+
supportsBeaming;
|
|
492
|
+
serialize(ctx) {
|
|
493
|
+
this.payload = Bytes.concat([
|
|
494
|
+
Bytes.from([this.sequenceNumber, this.sourceNodeId]),
|
|
495
|
+
encodeNodeProtocolInfoAndDeviceClass(this),
|
|
496
|
+
]);
|
|
497
|
+
return super.serialize(ctx);
|
|
498
|
+
}
|
|
499
|
+
};
|
|
500
|
+
return ZWaveProtocolCCTransferNodeInformation = _classThis;
|
|
501
|
+
})();
|
|
502
|
+
export { ZWaveProtocolCCTransferNodeInformation };
|
|
503
|
+
let ZWaveProtocolCCTransferRangeInformation = (() => {
|
|
504
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.TransferRangeInformation)];
|
|
505
|
+
let _classDescriptor;
|
|
506
|
+
let _classExtraInitializers = [];
|
|
507
|
+
let _classThis;
|
|
508
|
+
let _classSuper = ZWaveProtocolCC;
|
|
509
|
+
var ZWaveProtocolCCTransferRangeInformation = class extends _classSuper {
|
|
510
|
+
static { _classThis = this; }
|
|
511
|
+
static {
|
|
512
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
513
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
514
|
+
ZWaveProtocolCCTransferRangeInformation = _classThis = _classDescriptor.value;
|
|
515
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
516
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
517
|
+
}
|
|
518
|
+
constructor(options) {
|
|
519
|
+
super(options);
|
|
520
|
+
this.sequenceNumber = options.sequenceNumber;
|
|
521
|
+
this.testedNodeId = options.testedNodeId;
|
|
522
|
+
this.neighborNodeIds = options.neighborNodeIds;
|
|
523
|
+
}
|
|
524
|
+
static from(raw, ctx) {
|
|
525
|
+
validatePayload(raw.payload.length >= 3);
|
|
526
|
+
const sequenceNumber = raw.payload[0];
|
|
527
|
+
const testedNodeId = raw.payload[1];
|
|
528
|
+
const bitmaskLength = raw.payload[2];
|
|
529
|
+
validatePayload(raw.payload.length >= 3 + bitmaskLength);
|
|
530
|
+
const neighborNodeIds = parseBitMask(raw.payload.subarray(3, 3 + bitmaskLength));
|
|
531
|
+
return new this({
|
|
532
|
+
nodeId: ctx.sourceNodeId,
|
|
533
|
+
sequenceNumber,
|
|
534
|
+
testedNodeId,
|
|
535
|
+
neighborNodeIds,
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
sequenceNumber;
|
|
539
|
+
testedNodeId;
|
|
540
|
+
neighborNodeIds;
|
|
541
|
+
serialize(ctx) {
|
|
542
|
+
const nodesBitmask = encodeBitMask(this.neighborNodeIds, MAX_NODES);
|
|
543
|
+
this.payload = Bytes.concat([
|
|
544
|
+
Bytes.from([
|
|
545
|
+
this.sequenceNumber,
|
|
546
|
+
this.testedNodeId,
|
|
547
|
+
nodesBitmask.length,
|
|
548
|
+
]),
|
|
549
|
+
nodesBitmask,
|
|
550
|
+
]);
|
|
551
|
+
return super.serialize(ctx);
|
|
552
|
+
}
|
|
553
|
+
};
|
|
554
|
+
return ZWaveProtocolCCTransferRangeInformation = _classThis;
|
|
555
|
+
})();
|
|
556
|
+
export { ZWaveProtocolCCTransferRangeInformation };
|
|
557
|
+
let ZWaveProtocolCCTransferEnd = (() => {
|
|
558
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.TransferEnd)];
|
|
559
|
+
let _classDescriptor;
|
|
560
|
+
let _classExtraInitializers = [];
|
|
561
|
+
let _classThis;
|
|
562
|
+
let _classSuper = ZWaveProtocolCC;
|
|
563
|
+
var ZWaveProtocolCCTransferEnd = class extends _classSuper {
|
|
564
|
+
static { _classThis = this; }
|
|
565
|
+
static {
|
|
566
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
567
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
568
|
+
ZWaveProtocolCCTransferEnd = _classThis = _classDescriptor.value;
|
|
569
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
570
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
571
|
+
}
|
|
572
|
+
constructor(options) {
|
|
573
|
+
super(options);
|
|
574
|
+
this.status = options.status;
|
|
575
|
+
}
|
|
576
|
+
static from(raw, ctx) {
|
|
577
|
+
validatePayload(raw.payload.length >= 1);
|
|
578
|
+
const status = raw.payload[0];
|
|
579
|
+
return new this({
|
|
580
|
+
nodeId: ctx.sourceNodeId,
|
|
581
|
+
status,
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
status;
|
|
585
|
+
serialize(ctx) {
|
|
586
|
+
this.payload = Bytes.from([this.status]);
|
|
587
|
+
return super.serialize(ctx);
|
|
588
|
+
}
|
|
589
|
+
};
|
|
590
|
+
return ZWaveProtocolCCTransferEnd = _classThis;
|
|
591
|
+
})();
|
|
592
|
+
export { ZWaveProtocolCCTransferEnd };
|
|
593
|
+
let ZWaveProtocolCCAssignReturnRoute = (() => {
|
|
594
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.AssignReturnRoute)];
|
|
595
|
+
let _classDescriptor;
|
|
596
|
+
let _classExtraInitializers = [];
|
|
597
|
+
let _classThis;
|
|
598
|
+
let _classSuper = ZWaveProtocolCC;
|
|
599
|
+
var ZWaveProtocolCCAssignReturnRoute = class extends _classSuper {
|
|
600
|
+
static { _classThis = this; }
|
|
601
|
+
static {
|
|
602
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
603
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
604
|
+
ZWaveProtocolCCAssignReturnRoute = _classThis = _classDescriptor.value;
|
|
605
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
606
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
607
|
+
}
|
|
608
|
+
constructor(options) {
|
|
609
|
+
super(options);
|
|
610
|
+
if (options.repeaters.length > MAX_REPEATERS) {
|
|
611
|
+
throw new ZWaveError(`${this.constructor.name}: too many repeaters`, ZWaveErrorCodes.Argument_Invalid);
|
|
612
|
+
}
|
|
613
|
+
this.destinationNodeId = options.destinationNodeId;
|
|
614
|
+
this.routeIndex = options.routeIndex;
|
|
615
|
+
this.repeaters = options.repeaters;
|
|
616
|
+
this.destinationWakeUp = options.destinationWakeUp;
|
|
617
|
+
this.destinationSpeed = options.destinationSpeed;
|
|
618
|
+
}
|
|
619
|
+
static from(raw, ctx) {
|
|
620
|
+
validatePayload(raw.payload.length >= 7);
|
|
621
|
+
const destinationNodeId = raw.payload[0];
|
|
622
|
+
const routeIndex = raw.payload[1] >>> 4;
|
|
623
|
+
const numRepeaters = raw.payload[1] & 0b1111;
|
|
624
|
+
const repeaters = [...raw.payload.subarray(2, 2 + numRepeaters)];
|
|
625
|
+
const speedAndWakeup = raw.payload[2 + numRepeaters];
|
|
626
|
+
const destinationSpeed = bitmask2DataRate((speedAndWakeup >>> 3) & 0b111);
|
|
627
|
+
const destinationWakeUp = (speedAndWakeup >>> 1) & 0b11;
|
|
628
|
+
return new this({
|
|
629
|
+
nodeId: ctx.sourceNodeId,
|
|
630
|
+
destinationNodeId,
|
|
631
|
+
routeIndex,
|
|
632
|
+
repeaters,
|
|
633
|
+
destinationSpeed,
|
|
634
|
+
destinationWakeUp,
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
destinationNodeId;
|
|
638
|
+
routeIndex;
|
|
639
|
+
repeaters;
|
|
640
|
+
destinationWakeUp;
|
|
641
|
+
destinationSpeed;
|
|
642
|
+
serialize(ctx) {
|
|
643
|
+
const routeByte = (this.routeIndex << 4) | this.repeaters.length;
|
|
644
|
+
const speedMask = dataRate2Bitmask(this.destinationSpeed);
|
|
645
|
+
const speedByte = (speedMask << 3) | (this.destinationWakeUp << 1);
|
|
646
|
+
this.payload = Bytes.from([
|
|
647
|
+
this.destinationNodeId,
|
|
648
|
+
routeByte,
|
|
649
|
+
...this.repeaters,
|
|
650
|
+
speedByte,
|
|
651
|
+
]);
|
|
652
|
+
return super.serialize(ctx);
|
|
653
|
+
}
|
|
654
|
+
};
|
|
655
|
+
return ZWaveProtocolCCAssignReturnRoute = _classThis;
|
|
656
|
+
})();
|
|
657
|
+
export { ZWaveProtocolCCAssignReturnRoute };
|
|
658
|
+
let ZWaveProtocolCCNewNodeRegistered = (() => {
|
|
659
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.NewNodeRegistered)];
|
|
660
|
+
let _classDescriptor;
|
|
661
|
+
let _classExtraInitializers = [];
|
|
662
|
+
let _classThis;
|
|
663
|
+
let _classSuper = ZWaveProtocolCC;
|
|
664
|
+
var ZWaveProtocolCCNewNodeRegistered = class extends _classSuper {
|
|
665
|
+
static { _classThis = this; }
|
|
666
|
+
static {
|
|
667
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
668
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
669
|
+
ZWaveProtocolCCNewNodeRegistered = _classThis = _classDescriptor.value;
|
|
670
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
671
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
672
|
+
}
|
|
673
|
+
constructor(options) {
|
|
674
|
+
super(options);
|
|
675
|
+
this.newNodeId = options.newNodeId;
|
|
676
|
+
this.basicDeviceClass = options.basicDeviceClass;
|
|
677
|
+
this.genericDeviceClass = options.genericDeviceClass;
|
|
678
|
+
this.specificDeviceClass = options.specificDeviceClass;
|
|
679
|
+
this.isListening = options.isListening;
|
|
680
|
+
this.isFrequentListening = options.isFrequentListening;
|
|
681
|
+
this.isRouting = options.isRouting;
|
|
682
|
+
this.supportedDataRates = options.supportedDataRates;
|
|
683
|
+
this.protocolVersion = options.protocolVersion;
|
|
684
|
+
this.optionalFunctionality = options.optionalFunctionality;
|
|
685
|
+
this.nodeType = options.nodeType;
|
|
686
|
+
this.supportsSecurity = options.supportsSecurity;
|
|
687
|
+
this.supportsBeaming = options.supportsBeaming;
|
|
688
|
+
this.supportedCCs = options.supportedCCs;
|
|
689
|
+
}
|
|
690
|
+
static from(raw, ctx) {
|
|
691
|
+
validatePayload(raw.payload.length >= 1);
|
|
692
|
+
const newNodeId = raw.payload[0];
|
|
693
|
+
const nif = parseNodeInformationFrame(raw.payload.subarray(1));
|
|
694
|
+
return new this({
|
|
695
|
+
nodeId: ctx.sourceNodeId,
|
|
696
|
+
newNodeId,
|
|
697
|
+
...nif,
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
newNodeId;
|
|
701
|
+
basicDeviceClass;
|
|
702
|
+
genericDeviceClass;
|
|
703
|
+
specificDeviceClass;
|
|
704
|
+
isListening;
|
|
705
|
+
isFrequentListening;
|
|
706
|
+
isRouting;
|
|
707
|
+
supportedDataRates;
|
|
708
|
+
protocolVersion;
|
|
709
|
+
optionalFunctionality;
|
|
710
|
+
nodeType;
|
|
711
|
+
supportsSecurity;
|
|
712
|
+
supportsBeaming;
|
|
713
|
+
supportedCCs;
|
|
714
|
+
serialize(ctx) {
|
|
715
|
+
this.payload = Bytes.concat([
|
|
716
|
+
Bytes.from([this.newNodeId]),
|
|
717
|
+
encodeNodeInformationFrame(this),
|
|
718
|
+
]);
|
|
719
|
+
return super.serialize(ctx);
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
return ZWaveProtocolCCNewNodeRegistered = _classThis;
|
|
723
|
+
})();
|
|
724
|
+
export { ZWaveProtocolCCNewNodeRegistered };
|
|
725
|
+
let ZWaveProtocolCCNewRangeRegistered = (() => {
|
|
726
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.NewRangeRegistered)];
|
|
727
|
+
let _classDescriptor;
|
|
728
|
+
let _classExtraInitializers = [];
|
|
729
|
+
let _classThis;
|
|
730
|
+
let _classSuper = ZWaveProtocolCC;
|
|
731
|
+
var ZWaveProtocolCCNewRangeRegistered = class extends _classSuper {
|
|
732
|
+
static { _classThis = this; }
|
|
733
|
+
static {
|
|
734
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
735
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
736
|
+
ZWaveProtocolCCNewRangeRegistered = _classThis = _classDescriptor.value;
|
|
737
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
738
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
739
|
+
}
|
|
740
|
+
constructor(options) {
|
|
741
|
+
super(options);
|
|
742
|
+
this.testedNodeId = options.testedNodeId;
|
|
743
|
+
this.neighborNodeIds = options.neighborNodeIds;
|
|
744
|
+
}
|
|
745
|
+
static from(raw, ctx) {
|
|
746
|
+
validatePayload(raw.payload.length >= 2);
|
|
747
|
+
const testedNodeId = raw.payload[0];
|
|
748
|
+
const numNeighbors = raw.payload[1];
|
|
749
|
+
const neighborNodeIds = [
|
|
750
|
+
...raw.payload.subarray(2, 2 + numNeighbors),
|
|
751
|
+
];
|
|
752
|
+
return new this({
|
|
753
|
+
nodeId: ctx.sourceNodeId,
|
|
754
|
+
testedNodeId,
|
|
755
|
+
neighborNodeIds,
|
|
756
|
+
});
|
|
757
|
+
}
|
|
758
|
+
testedNodeId;
|
|
759
|
+
neighborNodeIds;
|
|
760
|
+
serialize(ctx) {
|
|
761
|
+
const nodesBitmask = encodeBitMask(this.neighborNodeIds, MAX_NODES);
|
|
762
|
+
this.payload = Bytes.concat([
|
|
763
|
+
Bytes.from([this.testedNodeId, nodesBitmask.length]),
|
|
764
|
+
nodesBitmask,
|
|
765
|
+
]);
|
|
766
|
+
return super.serialize(ctx);
|
|
767
|
+
}
|
|
768
|
+
};
|
|
769
|
+
return ZWaveProtocolCCNewRangeRegistered = _classThis;
|
|
770
|
+
})();
|
|
771
|
+
export { ZWaveProtocolCCNewRangeRegistered };
|
|
772
|
+
let ZWaveProtocolCCTransferNewPrimaryControllerComplete = (() => {
|
|
773
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.TransferNewPrimaryControllerComplete)];
|
|
774
|
+
let _classDescriptor;
|
|
775
|
+
let _classExtraInitializers = [];
|
|
776
|
+
let _classThis;
|
|
777
|
+
let _classSuper = ZWaveProtocolCC;
|
|
778
|
+
var ZWaveProtocolCCTransferNewPrimaryControllerComplete = class extends _classSuper {
|
|
779
|
+
static { _classThis = this; }
|
|
780
|
+
static {
|
|
781
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
782
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
783
|
+
ZWaveProtocolCCTransferNewPrimaryControllerComplete = _classThis = _classDescriptor.value;
|
|
784
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
785
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
786
|
+
}
|
|
787
|
+
constructor(options) {
|
|
788
|
+
super(options);
|
|
789
|
+
this.genericDeviceClass = options.genericDeviceClass;
|
|
790
|
+
}
|
|
791
|
+
static from(raw, ctx) {
|
|
792
|
+
validatePayload(raw.payload.length >= 1);
|
|
793
|
+
const genericDeviceClass = raw.payload[0];
|
|
794
|
+
return new this({
|
|
795
|
+
nodeId: ctx.sourceNodeId,
|
|
796
|
+
genericDeviceClass,
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
genericDeviceClass;
|
|
800
|
+
serialize(ctx) {
|
|
801
|
+
this.payload = Bytes.from([this.genericDeviceClass]);
|
|
802
|
+
return super.serialize(ctx);
|
|
803
|
+
}
|
|
804
|
+
};
|
|
805
|
+
return ZWaveProtocolCCTransferNewPrimaryControllerComplete = _classThis;
|
|
806
|
+
})();
|
|
807
|
+
export { ZWaveProtocolCCTransferNewPrimaryControllerComplete };
|
|
808
|
+
let ZWaveProtocolCCAutomaticControllerUpdateStart = (() => {
|
|
809
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.AutomaticControllerUpdateStart)];
|
|
810
|
+
let _classDescriptor;
|
|
811
|
+
let _classExtraInitializers = [];
|
|
812
|
+
let _classThis;
|
|
813
|
+
let _classSuper = ZWaveProtocolCC;
|
|
814
|
+
var ZWaveProtocolCCAutomaticControllerUpdateStart = class extends _classSuper {
|
|
815
|
+
static { _classThis = this; }
|
|
816
|
+
static {
|
|
817
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
818
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
819
|
+
ZWaveProtocolCCAutomaticControllerUpdateStart = _classThis = _classDescriptor.value;
|
|
820
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
821
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
822
|
+
}
|
|
823
|
+
};
|
|
824
|
+
return ZWaveProtocolCCAutomaticControllerUpdateStart = _classThis;
|
|
825
|
+
})();
|
|
826
|
+
export { ZWaveProtocolCCAutomaticControllerUpdateStart };
|
|
827
|
+
let ZWaveProtocolCCSUCNodeID = (() => {
|
|
828
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.SUCNodeID)];
|
|
829
|
+
let _classDescriptor;
|
|
830
|
+
let _classExtraInitializers = [];
|
|
831
|
+
let _classThis;
|
|
832
|
+
let _classSuper = ZWaveProtocolCC;
|
|
833
|
+
var ZWaveProtocolCCSUCNodeID = class extends _classSuper {
|
|
834
|
+
static { _classThis = this; }
|
|
835
|
+
static {
|
|
836
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
837
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
838
|
+
ZWaveProtocolCCSUCNodeID = _classThis = _classDescriptor.value;
|
|
839
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
840
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
841
|
+
}
|
|
842
|
+
constructor(options) {
|
|
843
|
+
super(options);
|
|
844
|
+
this.sucNodeId = options.sucNodeId;
|
|
845
|
+
this.isSIS = options.isSIS;
|
|
846
|
+
}
|
|
847
|
+
static from(raw, ctx) {
|
|
848
|
+
validatePayload(raw.payload.length >= 1);
|
|
849
|
+
const sucNodeId = raw.payload[0];
|
|
850
|
+
const capabilities = raw.payload[1] ?? 0;
|
|
851
|
+
const isSIS = !!(capabilities & 0b1);
|
|
852
|
+
return new this({
|
|
853
|
+
nodeId: ctx.sourceNodeId,
|
|
854
|
+
sucNodeId,
|
|
855
|
+
isSIS,
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
sucNodeId;
|
|
859
|
+
isSIS;
|
|
860
|
+
serialize(ctx) {
|
|
861
|
+
this.payload = Bytes.from([this.sucNodeId, this.isSIS ? 0b1 : 0]);
|
|
862
|
+
return super.serialize(ctx);
|
|
863
|
+
}
|
|
864
|
+
};
|
|
865
|
+
return ZWaveProtocolCCSUCNodeID = _classThis;
|
|
866
|
+
})();
|
|
867
|
+
export { ZWaveProtocolCCSUCNodeID };
|
|
868
|
+
let ZWaveProtocolCCSetSUC = (() => {
|
|
869
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.SetSUC)];
|
|
870
|
+
let _classDescriptor;
|
|
871
|
+
let _classExtraInitializers = [];
|
|
872
|
+
let _classThis;
|
|
873
|
+
let _classSuper = ZWaveProtocolCC;
|
|
874
|
+
var ZWaveProtocolCCSetSUC = class extends _classSuper {
|
|
875
|
+
static { _classThis = this; }
|
|
876
|
+
static {
|
|
877
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
878
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
879
|
+
ZWaveProtocolCCSetSUC = _classThis = _classDescriptor.value;
|
|
880
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
881
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
882
|
+
}
|
|
883
|
+
constructor(options) {
|
|
884
|
+
super(options);
|
|
885
|
+
this.enableSIS = options.enableSIS;
|
|
886
|
+
}
|
|
887
|
+
static from(raw, ctx) {
|
|
888
|
+
validatePayload(raw.payload.length >= 2);
|
|
889
|
+
// Byte 0 must be 0x01 or ignored
|
|
890
|
+
const capabilities = raw.payload[1] ?? 0;
|
|
891
|
+
const enableSIS = !!(capabilities & 0b1);
|
|
892
|
+
return new this({
|
|
893
|
+
nodeId: ctx.sourceNodeId,
|
|
894
|
+
enableSIS,
|
|
895
|
+
});
|
|
896
|
+
}
|
|
897
|
+
enableSIS;
|
|
898
|
+
serialize(ctx) {
|
|
899
|
+
this.payload = Bytes.from([0x01, this.enableSIS ? 0b1 : 0]);
|
|
900
|
+
return super.serialize(ctx);
|
|
901
|
+
}
|
|
902
|
+
};
|
|
903
|
+
return ZWaveProtocolCCSetSUC = _classThis;
|
|
904
|
+
})();
|
|
905
|
+
export { ZWaveProtocolCCSetSUC };
|
|
906
|
+
let ZWaveProtocolCCSetSUCAck = (() => {
|
|
907
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.SetSUCAck)];
|
|
908
|
+
let _classDescriptor;
|
|
909
|
+
let _classExtraInitializers = [];
|
|
910
|
+
let _classThis;
|
|
911
|
+
let _classSuper = ZWaveProtocolCC;
|
|
912
|
+
var ZWaveProtocolCCSetSUCAck = class extends _classSuper {
|
|
913
|
+
static { _classThis = this; }
|
|
914
|
+
static {
|
|
915
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
916
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
917
|
+
ZWaveProtocolCCSetSUCAck = _classThis = _classDescriptor.value;
|
|
918
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
919
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
920
|
+
}
|
|
921
|
+
constructor(options) {
|
|
922
|
+
super(options);
|
|
923
|
+
this.accepted = options.accepted;
|
|
924
|
+
this.isSIS = options.isSIS;
|
|
925
|
+
}
|
|
926
|
+
static from(raw, ctx) {
|
|
927
|
+
validatePayload(raw.payload.length >= 2);
|
|
928
|
+
const accepted = raw.payload[0] === 0x01;
|
|
929
|
+
const capabilities = raw.payload[1] ?? 0;
|
|
930
|
+
const isSIS = !!(capabilities & 0b1);
|
|
931
|
+
return new this({
|
|
932
|
+
nodeId: ctx.sourceNodeId,
|
|
933
|
+
accepted,
|
|
934
|
+
isSIS,
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
accepted;
|
|
938
|
+
isSIS;
|
|
939
|
+
serialize(ctx) {
|
|
940
|
+
this.payload = Bytes.from([
|
|
941
|
+
this.accepted ? 0x01 : 0x00,
|
|
942
|
+
this.isSIS ? 0b1 : 0,
|
|
943
|
+
]);
|
|
944
|
+
return super.serialize(ctx);
|
|
945
|
+
}
|
|
946
|
+
};
|
|
947
|
+
return ZWaveProtocolCCSetSUCAck = _classThis;
|
|
948
|
+
})();
|
|
949
|
+
export { ZWaveProtocolCCSetSUCAck };
|
|
950
|
+
let ZWaveProtocolCCAssignSUCReturnRoute = (() => {
|
|
951
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.AssignSUCReturnRoute)];
|
|
952
|
+
let _classDescriptor;
|
|
953
|
+
let _classExtraInitializers = [];
|
|
954
|
+
let _classThis;
|
|
955
|
+
let _classSuper = ZWaveProtocolCCAssignReturnRoute;
|
|
956
|
+
var ZWaveProtocolCCAssignSUCReturnRoute = class extends _classSuper {
|
|
957
|
+
static { _classThis = this; }
|
|
958
|
+
static {
|
|
959
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
960
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
961
|
+
ZWaveProtocolCCAssignSUCReturnRoute = _classThis = _classDescriptor.value;
|
|
962
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
963
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
964
|
+
}
|
|
965
|
+
};
|
|
966
|
+
return ZWaveProtocolCCAssignSUCReturnRoute = _classThis;
|
|
967
|
+
})();
|
|
968
|
+
export { ZWaveProtocolCCAssignSUCReturnRoute };
|
|
969
|
+
let ZWaveProtocolCCStaticRouteRequest = (() => {
|
|
970
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.StaticRouteRequest)];
|
|
971
|
+
let _classDescriptor;
|
|
972
|
+
let _classExtraInitializers = [];
|
|
973
|
+
let _classThis;
|
|
974
|
+
let _classSuper = ZWaveProtocolCC;
|
|
975
|
+
var ZWaveProtocolCCStaticRouteRequest = class extends _classSuper {
|
|
976
|
+
static { _classThis = this; }
|
|
977
|
+
static {
|
|
978
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
979
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
980
|
+
ZWaveProtocolCCStaticRouteRequest = _classThis = _classDescriptor.value;
|
|
981
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
982
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
983
|
+
}
|
|
984
|
+
constructor(options) {
|
|
985
|
+
super(options);
|
|
986
|
+
if (options.nodeIds.some((n) => n < 1 || n > MAX_NODES)) {
|
|
987
|
+
throw new ZWaveError(`All node IDs must be between 1 and ${MAX_NODES}!`, ZWaveErrorCodes.Argument_Invalid);
|
|
988
|
+
}
|
|
989
|
+
this.nodeIds = options.nodeIds;
|
|
990
|
+
}
|
|
991
|
+
static from(raw, ctx) {
|
|
992
|
+
validatePayload(raw.payload.length >= 5);
|
|
993
|
+
const nodeIds = [...raw.payload.subarray(0, 5)].filter((id) => id > 0 && id <= MAX_NODES);
|
|
994
|
+
return new this({
|
|
995
|
+
nodeId: ctx.sourceNodeId,
|
|
996
|
+
nodeIds,
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
nodeIds;
|
|
1000
|
+
serialize(ctx) {
|
|
1001
|
+
this.payload = Bytes.alloc(5, 0);
|
|
1002
|
+
for (let i = 0; i < this.nodeIds.length && i < 5; i++) {
|
|
1003
|
+
this.payload[i] = this.nodeIds[i];
|
|
1004
|
+
}
|
|
1005
|
+
return super.serialize(ctx);
|
|
1006
|
+
}
|
|
1007
|
+
};
|
|
1008
|
+
return ZWaveProtocolCCStaticRouteRequest = _classThis;
|
|
1009
|
+
})();
|
|
1010
|
+
export { ZWaveProtocolCCStaticRouteRequest };
|
|
1011
|
+
let ZWaveProtocolCCLost = (() => {
|
|
1012
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.Lost)];
|
|
1013
|
+
let _classDescriptor;
|
|
1014
|
+
let _classExtraInitializers = [];
|
|
1015
|
+
let _classThis;
|
|
1016
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1017
|
+
var ZWaveProtocolCCLost = class extends _classSuper {
|
|
1018
|
+
static { _classThis = this; }
|
|
1019
|
+
static {
|
|
1020
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1021
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1022
|
+
ZWaveProtocolCCLost = _classThis = _classDescriptor.value;
|
|
1023
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1024
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1025
|
+
}
|
|
1026
|
+
constructor(options) {
|
|
1027
|
+
super(options);
|
|
1028
|
+
this.lostNodeId = options.lostNodeId;
|
|
1029
|
+
}
|
|
1030
|
+
static from(raw, ctx) {
|
|
1031
|
+
validatePayload(raw.payload.length >= 1);
|
|
1032
|
+
const lostNodeId = raw.payload[0];
|
|
1033
|
+
return new this({
|
|
1034
|
+
nodeId: ctx.sourceNodeId,
|
|
1035
|
+
lostNodeId,
|
|
1036
|
+
});
|
|
1037
|
+
}
|
|
1038
|
+
lostNodeId;
|
|
1039
|
+
serialize(ctx) {
|
|
1040
|
+
this.payload = Bytes.from([this.lostNodeId]);
|
|
1041
|
+
return super.serialize(ctx);
|
|
1042
|
+
}
|
|
1043
|
+
};
|
|
1044
|
+
return ZWaveProtocolCCLost = _classThis;
|
|
1045
|
+
})();
|
|
1046
|
+
export { ZWaveProtocolCCLost };
|
|
1047
|
+
let ZWaveProtocolCCAcceptLost = (() => {
|
|
1048
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.AcceptLost)];
|
|
1049
|
+
let _classDescriptor;
|
|
1050
|
+
let _classExtraInitializers = [];
|
|
1051
|
+
let _classThis;
|
|
1052
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1053
|
+
var ZWaveProtocolCCAcceptLost = class extends _classSuper {
|
|
1054
|
+
static { _classThis = this; }
|
|
1055
|
+
static {
|
|
1056
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1057
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1058
|
+
ZWaveProtocolCCAcceptLost = _classThis = _classDescriptor.value;
|
|
1059
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1060
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1061
|
+
}
|
|
1062
|
+
constructor(options) {
|
|
1063
|
+
super(options);
|
|
1064
|
+
this.accepted = options.accepted;
|
|
1065
|
+
}
|
|
1066
|
+
static from(raw, ctx) {
|
|
1067
|
+
validatePayload(raw.payload.length >= 1);
|
|
1068
|
+
validatePayload(raw.payload[0] === 0x04 || raw.payload[0] === 0x05);
|
|
1069
|
+
const accepted = raw.payload[0] === 0x05;
|
|
1070
|
+
return new this({
|
|
1071
|
+
nodeId: ctx.sourceNodeId,
|
|
1072
|
+
accepted,
|
|
1073
|
+
});
|
|
1074
|
+
}
|
|
1075
|
+
accepted;
|
|
1076
|
+
serialize(ctx) {
|
|
1077
|
+
this.payload = Bytes.from([this.accepted ? 0x05 : 0x04]);
|
|
1078
|
+
return super.serialize(ctx);
|
|
1079
|
+
}
|
|
1080
|
+
};
|
|
1081
|
+
return ZWaveProtocolCCAcceptLost = _classThis;
|
|
1082
|
+
})();
|
|
1083
|
+
export { ZWaveProtocolCCAcceptLost };
|
|
1084
|
+
let ZWaveProtocolCCNOPPower = (() => {
|
|
1085
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.NOPPower)];
|
|
1086
|
+
let _classDescriptor;
|
|
1087
|
+
let _classExtraInitializers = [];
|
|
1088
|
+
let _classThis;
|
|
1089
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1090
|
+
var ZWaveProtocolCCNOPPower = class extends _classSuper {
|
|
1091
|
+
static { _classThis = this; }
|
|
1092
|
+
static {
|
|
1093
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1094
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1095
|
+
ZWaveProtocolCCNOPPower = _classThis = _classDescriptor.value;
|
|
1096
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1097
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1098
|
+
}
|
|
1099
|
+
constructor(options) {
|
|
1100
|
+
super(options);
|
|
1101
|
+
if (options.powerDampening < 0 || options.powerDampening > 14) {
|
|
1102
|
+
throw new ZWaveError(`${this.constructor.name}: power dampening must be between 0 and 14 dBm!`, ZWaveErrorCodes.Argument_Invalid);
|
|
1103
|
+
}
|
|
1104
|
+
this.powerDampening = options.powerDampening;
|
|
1105
|
+
}
|
|
1106
|
+
static from(raw, ctx) {
|
|
1107
|
+
let powerDampening;
|
|
1108
|
+
if (raw.payload.length >= 2) {
|
|
1109
|
+
// Ignore byte 0
|
|
1110
|
+
powerDampening = raw.payload[1];
|
|
1111
|
+
}
|
|
1112
|
+
else if (raw.payload.length === 1) {
|
|
1113
|
+
powerDampening = [
|
|
1114
|
+
0xf0,
|
|
1115
|
+
0xc8,
|
|
1116
|
+
0xa7,
|
|
1117
|
+
0x91,
|
|
1118
|
+
0x77,
|
|
1119
|
+
0x67,
|
|
1120
|
+
0x60,
|
|
1121
|
+
0x46,
|
|
1122
|
+
0x38,
|
|
1123
|
+
0x35,
|
|
1124
|
+
0x32,
|
|
1125
|
+
0x30,
|
|
1126
|
+
0x24,
|
|
1127
|
+
0x22,
|
|
1128
|
+
0x20,
|
|
1129
|
+
].indexOf(raw.payload[0]);
|
|
1130
|
+
if (powerDampening === -1)
|
|
1131
|
+
powerDampening = 0;
|
|
1132
|
+
}
|
|
1133
|
+
else {
|
|
1134
|
+
validatePayload.fail("Invalid payload length!");
|
|
1135
|
+
}
|
|
1136
|
+
return new this({
|
|
1137
|
+
nodeId: ctx.sourceNodeId,
|
|
1138
|
+
powerDampening,
|
|
1139
|
+
});
|
|
1140
|
+
}
|
|
1141
|
+
// Power dampening in (negative) dBm. A value of 2 means -2 dBm.
|
|
1142
|
+
powerDampening;
|
|
1143
|
+
serialize(ctx) {
|
|
1144
|
+
this.payload = Bytes.from([0, this.powerDampening]);
|
|
1145
|
+
return super.serialize(ctx);
|
|
1146
|
+
}
|
|
1147
|
+
};
|
|
1148
|
+
return ZWaveProtocolCCNOPPower = _classThis;
|
|
1149
|
+
})();
|
|
1150
|
+
export { ZWaveProtocolCCNOPPower };
|
|
1151
|
+
let ZWaveProtocolCCReservedIDs = (() => {
|
|
1152
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.ReservedIDs)];
|
|
1153
|
+
let _classDescriptor;
|
|
1154
|
+
let _classExtraInitializers = [];
|
|
1155
|
+
let _classThis;
|
|
1156
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1157
|
+
var ZWaveProtocolCCReservedIDs = class extends _classSuper {
|
|
1158
|
+
static { _classThis = this; }
|
|
1159
|
+
static {
|
|
1160
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1161
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1162
|
+
ZWaveProtocolCCReservedIDs = _classThis = _classDescriptor.value;
|
|
1163
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1164
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1165
|
+
}
|
|
1166
|
+
constructor(options) {
|
|
1167
|
+
super(options);
|
|
1168
|
+
this.reservedNodeIDs = options.reservedNodeIDs;
|
|
1169
|
+
}
|
|
1170
|
+
static from(raw, ctx) {
|
|
1171
|
+
validatePayload(raw.payload.length >= 1);
|
|
1172
|
+
const numNodeIDs = raw.payload[0];
|
|
1173
|
+
validatePayload(raw.payload.length >= 1 + numNodeIDs);
|
|
1174
|
+
const reservedNodeIDs = [
|
|
1175
|
+
...raw.payload.subarray(1, 1 + numNodeIDs),
|
|
1176
|
+
];
|
|
1177
|
+
return new this({
|
|
1178
|
+
nodeId: ctx.sourceNodeId,
|
|
1179
|
+
reservedNodeIDs,
|
|
1180
|
+
});
|
|
1181
|
+
}
|
|
1182
|
+
reservedNodeIDs;
|
|
1183
|
+
serialize(ctx) {
|
|
1184
|
+
this.payload = Bytes.from([
|
|
1185
|
+
this.reservedNodeIDs.length,
|
|
1186
|
+
...this.reservedNodeIDs,
|
|
1187
|
+
]);
|
|
1188
|
+
return super.serialize(ctx);
|
|
1189
|
+
}
|
|
1190
|
+
};
|
|
1191
|
+
return ZWaveProtocolCCReservedIDs = _classThis;
|
|
1192
|
+
})();
|
|
1193
|
+
export { ZWaveProtocolCCReservedIDs };
|
|
1194
|
+
let ZWaveProtocolCCReserveNodeIDs = (() => {
|
|
1195
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.ReserveNodeIDs), expectedCCResponse(ZWaveProtocolCCReservedIDs)];
|
|
1196
|
+
let _classDescriptor;
|
|
1197
|
+
let _classExtraInitializers = [];
|
|
1198
|
+
let _classThis;
|
|
1199
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1200
|
+
var ZWaveProtocolCCReserveNodeIDs = class extends _classSuper {
|
|
1201
|
+
static { _classThis = this; }
|
|
1202
|
+
static {
|
|
1203
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1204
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1205
|
+
ZWaveProtocolCCReserveNodeIDs = _classThis = _classDescriptor.value;
|
|
1206
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1207
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1208
|
+
}
|
|
1209
|
+
constructor(options) {
|
|
1210
|
+
super(options);
|
|
1211
|
+
this.numNodeIDs = options.numNodeIDs;
|
|
1212
|
+
}
|
|
1213
|
+
static from(raw, ctx) {
|
|
1214
|
+
validatePayload(raw.payload.length >= 1);
|
|
1215
|
+
const numNodeIDs = raw.payload[0];
|
|
1216
|
+
return new this({
|
|
1217
|
+
nodeId: ctx.sourceNodeId,
|
|
1218
|
+
numNodeIDs,
|
|
1219
|
+
});
|
|
1220
|
+
}
|
|
1221
|
+
numNodeIDs;
|
|
1222
|
+
serialize(ctx) {
|
|
1223
|
+
this.payload = Bytes.from([this.numNodeIDs]);
|
|
1224
|
+
return super.serialize(ctx);
|
|
1225
|
+
}
|
|
1226
|
+
};
|
|
1227
|
+
return ZWaveProtocolCCReserveNodeIDs = _classThis;
|
|
1228
|
+
})();
|
|
1229
|
+
export { ZWaveProtocolCCReserveNodeIDs };
|
|
1230
|
+
let ZWaveProtocolCCNodesExistReply = (() => {
|
|
1231
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.NodesExistReply)];
|
|
1232
|
+
let _classDescriptor;
|
|
1233
|
+
let _classExtraInitializers = [];
|
|
1234
|
+
let _classThis;
|
|
1235
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1236
|
+
var ZWaveProtocolCCNodesExistReply = class extends _classSuper {
|
|
1237
|
+
static { _classThis = this; }
|
|
1238
|
+
static {
|
|
1239
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1240
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1241
|
+
ZWaveProtocolCCNodesExistReply = _classThis = _classDescriptor.value;
|
|
1242
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1243
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1244
|
+
}
|
|
1245
|
+
constructor(options) {
|
|
1246
|
+
super(options);
|
|
1247
|
+
this.nodeMaskType = options.nodeMaskType;
|
|
1248
|
+
this.nodeListUpdated = options.nodeListUpdated;
|
|
1249
|
+
}
|
|
1250
|
+
static from(raw, ctx) {
|
|
1251
|
+
validatePayload(raw.payload.length >= 2);
|
|
1252
|
+
const nodeMaskType = raw.payload[0];
|
|
1253
|
+
const nodeListUpdated = raw.payload[1] === 0x01;
|
|
1254
|
+
return new this({
|
|
1255
|
+
nodeId: ctx.sourceNodeId,
|
|
1256
|
+
nodeMaskType,
|
|
1257
|
+
nodeListUpdated,
|
|
1258
|
+
});
|
|
1259
|
+
}
|
|
1260
|
+
nodeMaskType;
|
|
1261
|
+
nodeListUpdated;
|
|
1262
|
+
serialize(ctx) {
|
|
1263
|
+
this.payload = Bytes.from([
|
|
1264
|
+
this.nodeMaskType,
|
|
1265
|
+
this.nodeListUpdated ? 0x01 : 0x00,
|
|
1266
|
+
]);
|
|
1267
|
+
return super.serialize(ctx);
|
|
1268
|
+
}
|
|
1269
|
+
};
|
|
1270
|
+
return ZWaveProtocolCCNodesExistReply = _classThis;
|
|
1271
|
+
})();
|
|
1272
|
+
export { ZWaveProtocolCCNodesExistReply };
|
|
1273
|
+
function testResponseForZWaveProtocolNodesExist(sent, received) {
|
|
1274
|
+
return received.nodeMaskType === sent.nodeMaskType;
|
|
1275
|
+
}
|
|
1276
|
+
let ZWaveProtocolCCNodesExist = (() => {
|
|
1277
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.NodesExist), expectedCCResponse(ZWaveProtocolCCNodesExistReply, testResponseForZWaveProtocolNodesExist)];
|
|
1278
|
+
let _classDescriptor;
|
|
1279
|
+
let _classExtraInitializers = [];
|
|
1280
|
+
let _classThis;
|
|
1281
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1282
|
+
var ZWaveProtocolCCNodesExist = class extends _classSuper {
|
|
1283
|
+
static { _classThis = this; }
|
|
1284
|
+
static {
|
|
1285
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1286
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1287
|
+
ZWaveProtocolCCNodesExist = _classThis = _classDescriptor.value;
|
|
1288
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1289
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1290
|
+
}
|
|
1291
|
+
constructor(options) {
|
|
1292
|
+
super(options);
|
|
1293
|
+
this.nodeMaskType = options.nodeMaskType;
|
|
1294
|
+
this.nodeIDs = options.nodeIDs;
|
|
1295
|
+
}
|
|
1296
|
+
static from(raw, ctx) {
|
|
1297
|
+
validatePayload(raw.payload.length >= 2);
|
|
1298
|
+
const nodeMaskType = raw.payload[0];
|
|
1299
|
+
const numNodeIDs = raw.payload[1];
|
|
1300
|
+
validatePayload(raw.payload.length >= 2 + numNodeIDs);
|
|
1301
|
+
const nodeIDs = [...raw.payload.subarray(2, 2 + numNodeIDs)];
|
|
1302
|
+
return new this({
|
|
1303
|
+
nodeId: ctx.sourceNodeId,
|
|
1304
|
+
nodeMaskType,
|
|
1305
|
+
nodeIDs,
|
|
1306
|
+
});
|
|
1307
|
+
}
|
|
1308
|
+
nodeMaskType;
|
|
1309
|
+
nodeIDs;
|
|
1310
|
+
serialize(ctx) {
|
|
1311
|
+
this.payload = Bytes.from([
|
|
1312
|
+
this.nodeMaskType,
|
|
1313
|
+
this.nodeIDs.length,
|
|
1314
|
+
...this.nodeIDs,
|
|
1315
|
+
]);
|
|
1316
|
+
return super.serialize(ctx);
|
|
1317
|
+
}
|
|
1318
|
+
};
|
|
1319
|
+
return ZWaveProtocolCCNodesExist = _classThis;
|
|
1320
|
+
})();
|
|
1321
|
+
export { ZWaveProtocolCCNodesExist };
|
|
1322
|
+
let ZWaveProtocolCCSetNWIMode = (() => {
|
|
1323
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.SetNWIMode)];
|
|
1324
|
+
let _classDescriptor;
|
|
1325
|
+
let _classExtraInitializers = [];
|
|
1326
|
+
let _classThis;
|
|
1327
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1328
|
+
var ZWaveProtocolCCSetNWIMode = class extends _classSuper {
|
|
1329
|
+
static { _classThis = this; }
|
|
1330
|
+
static {
|
|
1331
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1332
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1333
|
+
ZWaveProtocolCCSetNWIMode = _classThis = _classDescriptor.value;
|
|
1334
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1335
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1336
|
+
}
|
|
1337
|
+
constructor(options) {
|
|
1338
|
+
super(options);
|
|
1339
|
+
this.enabled = options.enabled;
|
|
1340
|
+
this.timeoutMinutes = options.timeoutMinutes;
|
|
1341
|
+
}
|
|
1342
|
+
static from(raw, ctx) {
|
|
1343
|
+
validatePayload(raw.payload.length >= 2);
|
|
1344
|
+
const enabled = raw.payload[0] === 0x01;
|
|
1345
|
+
const timeoutMinutes = raw.payload[1] || undefined;
|
|
1346
|
+
return new this({
|
|
1347
|
+
nodeId: ctx.sourceNodeId,
|
|
1348
|
+
enabled,
|
|
1349
|
+
timeoutMinutes,
|
|
1350
|
+
});
|
|
1351
|
+
}
|
|
1352
|
+
enabled;
|
|
1353
|
+
timeoutMinutes;
|
|
1354
|
+
serialize(ctx) {
|
|
1355
|
+
this.payload = Bytes.from([
|
|
1356
|
+
this.enabled ? 0x01 : 0x00,
|
|
1357
|
+
this.timeoutMinutes ?? 0x00,
|
|
1358
|
+
]);
|
|
1359
|
+
return super.serialize(ctx);
|
|
1360
|
+
}
|
|
1361
|
+
};
|
|
1362
|
+
return ZWaveProtocolCCSetNWIMode = _classThis;
|
|
1363
|
+
})();
|
|
1364
|
+
export { ZWaveProtocolCCSetNWIMode };
|
|
1365
|
+
let ZWaveProtocolCCExcludeRequest = (() => {
|
|
1366
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.ExcludeRequest)];
|
|
1367
|
+
let _classDescriptor;
|
|
1368
|
+
let _classExtraInitializers = [];
|
|
1369
|
+
let _classThis;
|
|
1370
|
+
let _classSuper = ZWaveProtocolCCNodeInformationFrame;
|
|
1371
|
+
var ZWaveProtocolCCExcludeRequest = class extends _classSuper {
|
|
1372
|
+
static { _classThis = this; }
|
|
1373
|
+
static {
|
|
1374
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1375
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1376
|
+
ZWaveProtocolCCExcludeRequest = _classThis = _classDescriptor.value;
|
|
1377
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1378
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1379
|
+
}
|
|
1380
|
+
};
|
|
1381
|
+
return ZWaveProtocolCCExcludeRequest = _classThis;
|
|
1382
|
+
})();
|
|
1383
|
+
export { ZWaveProtocolCCExcludeRequest };
|
|
1384
|
+
let ZWaveProtocolCCAssignReturnRoutePriority = (() => {
|
|
1385
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.AssignReturnRoutePriority)];
|
|
1386
|
+
let _classDescriptor;
|
|
1387
|
+
let _classExtraInitializers = [];
|
|
1388
|
+
let _classThis;
|
|
1389
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1390
|
+
var ZWaveProtocolCCAssignReturnRoutePriority = class extends _classSuper {
|
|
1391
|
+
static { _classThis = this; }
|
|
1392
|
+
static {
|
|
1393
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1394
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1395
|
+
ZWaveProtocolCCAssignReturnRoutePriority = _classThis = _classDescriptor.value;
|
|
1396
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1397
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1398
|
+
}
|
|
1399
|
+
constructor(options) {
|
|
1400
|
+
super(options);
|
|
1401
|
+
this.targetNodeId = options.targetNodeId;
|
|
1402
|
+
this.routeNumber = options.routeNumber;
|
|
1403
|
+
}
|
|
1404
|
+
static from(raw, ctx) {
|
|
1405
|
+
validatePayload(raw.payload.length >= 2);
|
|
1406
|
+
const targetNodeId = raw.payload[0];
|
|
1407
|
+
const routeNumber = raw.payload[1];
|
|
1408
|
+
return new this({
|
|
1409
|
+
nodeId: ctx.sourceNodeId,
|
|
1410
|
+
targetNodeId,
|
|
1411
|
+
routeNumber,
|
|
1412
|
+
});
|
|
1413
|
+
}
|
|
1414
|
+
targetNodeId;
|
|
1415
|
+
routeNumber;
|
|
1416
|
+
serialize(ctx) {
|
|
1417
|
+
this.payload = Bytes.from([this.targetNodeId, this.routeNumber]);
|
|
1418
|
+
return super.serialize(ctx);
|
|
1419
|
+
}
|
|
1420
|
+
};
|
|
1421
|
+
return ZWaveProtocolCCAssignReturnRoutePriority = _classThis;
|
|
1422
|
+
})();
|
|
1423
|
+
export { ZWaveProtocolCCAssignReturnRoutePriority };
|
|
1424
|
+
let ZWaveProtocolCCAssignSUCReturnRoutePriority = (() => {
|
|
1425
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.AssignSUCReturnRoutePriority)];
|
|
1426
|
+
let _classDescriptor;
|
|
1427
|
+
let _classExtraInitializers = [];
|
|
1428
|
+
let _classThis;
|
|
1429
|
+
let _classSuper = ZWaveProtocolCCAssignReturnRoutePriority;
|
|
1430
|
+
var ZWaveProtocolCCAssignSUCReturnRoutePriority = class extends _classSuper {
|
|
1431
|
+
static { _classThis = this; }
|
|
1432
|
+
static {
|
|
1433
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1434
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1435
|
+
ZWaveProtocolCCAssignSUCReturnRoutePriority = _classThis = _classDescriptor.value;
|
|
1436
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1437
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1438
|
+
}
|
|
1439
|
+
};
|
|
1440
|
+
return ZWaveProtocolCCAssignSUCReturnRoutePriority = _classThis;
|
|
1441
|
+
})();
|
|
1442
|
+
export { ZWaveProtocolCCAssignSUCReturnRoutePriority };
|
|
1443
|
+
let ZWaveProtocolCCSmartStartIncludedNodeInformation = (() => {
|
|
1444
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.SmartStartIncludedNodeInformation)];
|
|
1445
|
+
let _classDescriptor;
|
|
1446
|
+
let _classExtraInitializers = [];
|
|
1447
|
+
let _classThis;
|
|
1448
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1449
|
+
var ZWaveProtocolCCSmartStartIncludedNodeInformation = class extends _classSuper {
|
|
1450
|
+
static { _classThis = this; }
|
|
1451
|
+
static {
|
|
1452
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1453
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1454
|
+
ZWaveProtocolCCSmartStartIncludedNodeInformation = _classThis = _classDescriptor.value;
|
|
1455
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1456
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1457
|
+
}
|
|
1458
|
+
constructor(options) {
|
|
1459
|
+
super(options);
|
|
1460
|
+
if (options.nwiHomeId.length !== 4) {
|
|
1461
|
+
throw new ZWaveError(`nwiHomeId must have length 4`, ZWaveErrorCodes.Argument_Invalid);
|
|
1462
|
+
}
|
|
1463
|
+
this.nwiHomeId = options.nwiHomeId;
|
|
1464
|
+
}
|
|
1465
|
+
static from(raw, ctx) {
|
|
1466
|
+
validatePayload(raw.payload.length >= 4);
|
|
1467
|
+
const nwiHomeId = raw.payload.subarray(0, 4);
|
|
1468
|
+
return new this({
|
|
1469
|
+
nodeId: ctx.sourceNodeId,
|
|
1470
|
+
nwiHomeId,
|
|
1471
|
+
});
|
|
1472
|
+
}
|
|
1473
|
+
nwiHomeId;
|
|
1474
|
+
serialize(ctx) {
|
|
1475
|
+
this.payload = Bytes.from(this.nwiHomeId);
|
|
1476
|
+
return super.serialize(ctx);
|
|
1477
|
+
}
|
|
1478
|
+
};
|
|
1479
|
+
return ZWaveProtocolCCSmartStartIncludedNodeInformation = _classThis;
|
|
1480
|
+
})();
|
|
1481
|
+
export { ZWaveProtocolCCSmartStartIncludedNodeInformation };
|
|
1482
|
+
let ZWaveProtocolCCSmartStartPrime = (() => {
|
|
1483
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.SmartStartPrime)];
|
|
1484
|
+
let _classDescriptor;
|
|
1485
|
+
let _classExtraInitializers = [];
|
|
1486
|
+
let _classThis;
|
|
1487
|
+
let _classSuper = ZWaveProtocolCCNodeInformationFrame;
|
|
1488
|
+
var ZWaveProtocolCCSmartStartPrime = class extends _classSuper {
|
|
1489
|
+
static { _classThis = this; }
|
|
1490
|
+
static {
|
|
1491
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1492
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1493
|
+
ZWaveProtocolCCSmartStartPrime = _classThis = _classDescriptor.value;
|
|
1494
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1495
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1496
|
+
}
|
|
1497
|
+
};
|
|
1498
|
+
return ZWaveProtocolCCSmartStartPrime = _classThis;
|
|
1499
|
+
})();
|
|
1500
|
+
export { ZWaveProtocolCCSmartStartPrime };
|
|
1501
|
+
let ZWaveProtocolCCSmartStartInclusionRequest = (() => {
|
|
1502
|
+
let _classDecorators = [CCCommand(ZWaveProtocolCommand.SmartStartInclusionRequest)];
|
|
1503
|
+
let _classDescriptor;
|
|
1504
|
+
let _classExtraInitializers = [];
|
|
1505
|
+
let _classThis;
|
|
1506
|
+
let _classSuper = ZWaveProtocolCCNodeInformationFrame;
|
|
1507
|
+
var ZWaveProtocolCCSmartStartInclusionRequest = class extends _classSuper {
|
|
1508
|
+
static { _classThis = this; }
|
|
1509
|
+
static {
|
|
1510
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1511
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1512
|
+
ZWaveProtocolCCSmartStartInclusionRequest = _classThis = _classDescriptor.value;
|
|
1513
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1514
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1515
|
+
}
|
|
1516
|
+
};
|
|
1517
|
+
return ZWaveProtocolCCSmartStartInclusionRequest = _classThis;
|
|
1518
|
+
})();
|
|
1519
|
+
export { ZWaveProtocolCCSmartStartInclusionRequest };
|
|
1520
|
+
//# sourceMappingURL=ZWaveProtocolCC.js.map
|