@zwave-js/cc 14.0.0-beta.1 → 14.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/cc/AlarmSensorCC.d.ts +194 -0
- package/build/cjs/cc/AlarmSensorCC.js +395 -0
- package/build/cjs/cc/AlarmSensorCC.js.map +7 -0
- package/build/cjs/cc/AssociationCC.d.ts +253 -0
- package/build/cjs/cc/AssociationCC.js +711 -0
- package/build/cjs/cc/AssociationCC.js.map +7 -0
- package/build/cjs/cc/AssociationGroupInfoCC.d.ts +230 -0
- package/build/cjs/cc/AssociationGroupInfoCC.js +746 -0
- package/build/cjs/cc/AssociationGroupInfoCC.js.map +7 -0
- package/build/cjs/cc/BarrierOperatorCC.d.ts +243 -0
- package/build/cjs/cc/BarrierOperatorCC.js +582 -0
- package/build/cjs/cc/BarrierOperatorCC.js.map +7 -0
- package/build/cjs/cc/BasicCC.d.ts +191 -0
- package/build/cjs/cc/BasicCC.js +384 -0
- package/build/cjs/cc/BasicCC.js.map +7 -0
- package/build/cjs/cc/BatteryCC.d.ts +406 -0
- package/build/cjs/cc/BatteryCC.js +508 -0
- package/build/cjs/cc/BatteryCC.js.map +7 -0
- package/build/cjs/cc/BinarySensorCC.d.ts +122 -0
- package/build/cjs/cc/BinarySensorCC.js +431 -0
- package/build/cjs/cc/BinarySensorCC.js.map +7 -0
- package/build/cjs/cc/BinarySwitchCC.d.ts +139 -0
- package/build/cjs/cc/BinarySwitchCC.js +378 -0
- package/build/cjs/cc/BinarySwitchCC.js.map +7 -0
- package/build/cjs/cc/CRC16CC.d.ts +29 -0
- package/build/cjs/cc/CRC16CC.js +133 -0
- package/build/cjs/cc/CRC16CC.js.map +7 -0
- package/build/cjs/cc/CentralSceneCC.d.ts +210 -0
- package/build/cjs/cc/CentralSceneCC.js +449 -0
- package/build/cjs/cc/CentralSceneCC.js.map +7 -0
- package/build/cjs/cc/ClimateControlScheduleCC.d.ts +177 -0
- package/build/cjs/cc/ClimateControlScheduleCC.js +480 -0
- package/build/cjs/cc/ClimateControlScheduleCC.js.map +7 -0
- package/build/cjs/cc/ClockCC.d.ts +47 -0
- package/build/cjs/cc/ClockCC.js +226 -0
- package/build/cjs/cc/ClockCC.js.map +7 -0
- package/build/cjs/cc/ColorSwitchCC.d.ts +339 -0
- package/build/cjs/cc/ColorSwitchCC.js +1117 -0
- package/build/cjs/cc/ColorSwitchCC.js.map +7 -0
- package/build/cjs/cc/ConfigurationCC.d.ts +396 -0
- package/build/cjs/cc/ConfigurationCC.js +2230 -0
- package/build/cjs/cc/ConfigurationCC.js.map +7 -0
- package/build/cjs/cc/DeviceResetLocallyCC.d.ts +17 -0
- package/build/cjs/cc/DeviceResetLocallyCC.js +92 -0
- package/build/cjs/cc/DeviceResetLocallyCC.js.map +7 -0
- package/build/cjs/cc/DoorLockCC.d.ts +837 -0
- package/build/cjs/cc/DoorLockCC.js +1239 -0
- package/build/cjs/cc/DoorLockCC.js.map +7 -0
- package/build/cjs/cc/DoorLockLoggingCC.d.ts +77 -0
- package/build/cjs/cc/DoorLockLoggingCC.js +343 -0
- package/build/cjs/cc/DoorLockLoggingCC.js.map +7 -0
- package/build/cjs/cc/EnergyProductionCC.d.ts +77 -0
- package/build/cjs/cc/EnergyProductionCC.js +240 -0
- package/build/cjs/cc/EnergyProductionCC.js.map +7 -0
- package/build/cjs/cc/EntryControlCC.d.ts +231 -0
- package/build/cjs/cc/EntryControlCC.js +593 -0
- package/build/cjs/cc/EntryControlCC.js.map +7 -0
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.d.ts +359 -0
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +1122 -0
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +7 -0
- package/build/cjs/cc/HailCC.d.ts +6 -0
- package/build/cjs/cc/HailCC.js +45 -0
- package/build/cjs/cc/HailCC.js.map +7 -0
- package/build/cjs/cc/HumidityControlModeCC.d.ts +111 -0
- package/build/cjs/cc/HumidityControlModeCC.js +323 -0
- package/build/cjs/cc/HumidityControlModeCC.js.map +7 -0
- package/build/cjs/cc/HumidityControlOperatingStateCC.d.ts +60 -0
- package/build/cjs/cc/HumidityControlOperatingStateCC.js +164 -0
- package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +7 -0
- package/build/cjs/cc/HumidityControlSetpointCC.d.ts +209 -0
- package/build/cjs/cc/HumidityControlSetpointCC.js +634 -0
- package/build/cjs/cc/HumidityControlSetpointCC.js.map +7 -0
- package/build/cjs/cc/InclusionControllerCC.d.ts +42 -0
- package/build/cjs/cc/InclusionControllerCC.js +160 -0
- package/build/cjs/cc/InclusionControllerCC.js.map +7 -0
- package/build/cjs/cc/IndicatorCC.d.ts +338 -0
- package/build/cjs/cc/IndicatorCC.js +1234 -0
- package/build/cjs/cc/IndicatorCC.js.map +7 -0
- package/build/cjs/cc/IrrigationCC.d.ts +1496 -0
- package/build/cjs/cc/IrrigationCC.js +1978 -0
- package/build/cjs/cc/IrrigationCC.js.map +7 -0
- package/build/cjs/cc/LanguageCC.d.ts +101 -0
- package/build/cjs/cc/LanguageCC.js +267 -0
- package/build/cjs/cc/LanguageCC.js.map +7 -0
- package/build/cjs/cc/LockCC.d.ts +73 -0
- package/build/cjs/cc/LockCC.js +222 -0
- package/build/cjs/cc/LockCC.js.map +7 -0
- package/build/cjs/cc/ManufacturerProprietaryCC.d.ts +32 -0
- package/build/cjs/cc/ManufacturerProprietaryCC.js +209 -0
- package/build/cjs/cc/ManufacturerProprietaryCC.js.map +7 -0
- package/build/cjs/cc/ManufacturerSpecificCC.d.ts +171 -0
- package/build/cjs/cc/ManufacturerSpecificCC.js +334 -0
- package/build/cjs/cc/ManufacturerSpecificCC.js.map +7 -0
- package/build/cjs/cc/MeterCC.d.ts +318 -0
- package/build/cjs/cc/MeterCC.js +1235 -0
- package/build/cjs/cc/MeterCC.js.map +7 -0
- package/build/cjs/cc/MultiChannelAssociationCC.d.ts +241 -0
- package/build/cjs/cc/MultiChannelAssociationCC.js +956 -0
- package/build/cjs/cc/MultiChannelAssociationCC.js.map +7 -0
- package/build/cjs/cc/MultiChannelCC.d.ts +394 -0
- package/build/cjs/cc/MultiChannelCC.js +1050 -0
- package/build/cjs/cc/MultiChannelCC.js.map +7 -0
- package/build/cjs/cc/MultiCommandCC.d.ts +27 -0
- package/build/cjs/cc/MultiCommandCC.js +159 -0
- package/build/cjs/cc/MultiCommandCC.js.map +7 -0
- package/build/cjs/cc/MultilevelSensorCC.d.ts +185 -0
- package/build/cjs/cc/MultilevelSensorCC.js +716 -0
- package/build/cjs/cc/MultilevelSensorCC.js.map +7 -0
- package/build/cjs/cc/MultilevelSwitchCC.d.ts +357 -0
- package/build/cjs/cc/MultilevelSwitchCC.js +780 -0
- package/build/cjs/cc/MultilevelSwitchCC.js.map +7 -0
- package/build/cjs/cc/NoOperationCC.d.ts +9 -0
- package/build/cjs/cc/NoOperationCC.js +64 -0
- package/build/cjs/cc/NoOperationCC.js.map +7 -0
- package/build/cjs/cc/NodeNamingCC.d.ts +118 -0
- package/build/cjs/cc/NodeNamingCC.js +364 -0
- package/build/cjs/cc/NodeNamingCC.js.map +7 -0
- package/build/cjs/cc/NotificationCC.d.ts +479 -0
- package/build/cjs/cc/NotificationCC.js +1245 -0
- package/build/cjs/cc/NotificationCC.js.map +7 -0
- package/build/cjs/cc/PowerlevelCC.d.ts +82 -0
- package/build/cjs/cc/PowerlevelCC.js +510 -0
- package/build/cjs/cc/PowerlevelCC.js.map +7 -0
- package/build/cjs/cc/ProtectionCC.d.ts +325 -0
- package/build/cjs/cc/ProtectionCC.js +667 -0
- package/build/cjs/cc/ProtectionCC.js.map +7 -0
- package/build/cjs/cc/SceneActivationCC.d.ts +89 -0
- package/build/cjs/cc/SceneActivationCC.js +193 -0
- package/build/cjs/cc/SceneActivationCC.js.map +7 -0
- package/build/cjs/cc/SceneActuatorConfigurationCC.d.ts +120 -0
- package/build/cjs/cc/SceneActuatorConfigurationCC.js +370 -0
- package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +7 -0
- package/build/cjs/cc/SceneControllerConfigurationCC.d.ts +129 -0
- package/build/cjs/cc/SceneControllerConfigurationCC.js +423 -0
- package/build/cjs/cc/SceneControllerConfigurationCC.js.map +7 -0
- package/build/cjs/cc/ScheduleEntryLockCC.d.ts +434 -0
- package/build/cjs/cc/ScheduleEntryLockCC.js +1763 -0
- package/build/cjs/cc/ScheduleEntryLockCC.js.map +7 -0
- package/build/cjs/cc/Security2CC.d.ts +251 -0
- package/build/cjs/cc/Security2CC.js +1589 -0
- package/build/cjs/cc/Security2CC.js.map +7 -0
- package/build/cjs/cc/SecurityCC.d.ts +128 -0
- package/build/cjs/cc/SecurityCC.js +757 -0
- package/build/cjs/cc/SecurityCC.js.map +7 -0
- package/build/cjs/cc/SoundSwitchCC.d.ts +232 -0
- package/build/cjs/cc/SoundSwitchCC.js +661 -0
- package/build/cjs/cc/SoundSwitchCC.js.map +7 -0
- package/build/cjs/cc/SupervisionCC.d.ts +104 -0
- package/build/cjs/cc/SupervisionCC.js +308 -0
- package/build/cjs/cc/SupervisionCC.js.map +7 -0
- package/build/cjs/cc/ThermostatFanModeCC.d.ts +141 -0
- package/build/cjs/cc/ThermostatFanModeCC.js +372 -0
- package/build/cjs/cc/ThermostatFanModeCC.js.map +7 -0
- package/build/cjs/cc/ThermostatFanStateCC.d.ts +60 -0
- package/build/cjs/cc/ThermostatFanStateCC.js +166 -0
- package/build/cjs/cc/ThermostatFanStateCC.js.map +7 -0
- package/build/cjs/cc/ThermostatModeCC.d.ts +150 -0
- package/build/cjs/cc/ThermostatModeCC.js +436 -0
- package/build/cjs/cc/ThermostatModeCC.js.map +7 -0
- package/build/cjs/cc/ThermostatOperatingStateCC.d.ts +61 -0
- package/build/cjs/cc/ThermostatOperatingStateCC.js +162 -0
- package/build/cjs/cc/ThermostatOperatingStateCC.js.map +7 -0
- package/build/cjs/cc/ThermostatSetbackCC.d.ts +46 -0
- package/build/cjs/cc/ThermostatSetbackCC.js +262 -0
- package/build/cjs/cc/ThermostatSetbackCC.js.map +7 -0
- package/build/cjs/cc/ThermostatSetpointCC.d.ts +197 -0
- package/build/cjs/cc/ThermostatSetpointCC.js +638 -0
- package/build/cjs/cc/ThermostatSetpointCC.js.map +7 -0
- package/build/cjs/cc/TimeCC.d.ts +88 -0
- package/build/cjs/cc/TimeCC.js +473 -0
- package/build/cjs/cc/TimeCC.js.map +7 -0
- package/build/cjs/cc/TimeParametersCC.d.ts +72 -0
- package/build/cjs/cc/TimeParametersCC.js +313 -0
- package/build/cjs/cc/TimeParametersCC.js.map +7 -0
- package/build/cjs/cc/TransportServiceCC.d.ts +107 -0
- package/build/cjs/cc/TransportServiceCC.js +404 -0
- package/build/cjs/cc/TransportServiceCC.js.map +7 -0
- package/build/cjs/cc/UserCodeCC.d.ts +683 -0
- package/build/cjs/cc/UserCodeCC.js +1620 -0
- package/build/cjs/cc/UserCodeCC.js.map +7 -0
- package/build/cjs/cc/VersionCC.d.ts +469 -0
- package/build/cjs/cc/VersionCC.js +828 -0
- package/build/cjs/cc/VersionCC.js.map +7 -0
- package/build/cjs/cc/WakeUpCC.d.ts +150 -0
- package/build/cjs/cc/WakeUpCC.js +456 -0
- package/build/cjs/cc/WakeUpCC.js.map +7 -0
- package/build/cjs/cc/WindowCoveringCC.d.ts +315 -0
- package/build/cjs/cc/WindowCoveringCC.js +776 -0
- package/build/cjs/cc/WindowCoveringCC.js.map +7 -0
- package/build/cjs/cc/ZWaveLongRangeCC.d.ts +4 -0
- package/build/cjs/cc/ZWaveLongRangeCC.js +43 -0
- package/build/cjs/cc/ZWaveLongRangeCC.js.map +7 -0
- package/build/cjs/cc/ZWavePlusCC.d.ts +163 -0
- package/build/cjs/cc/ZWavePlusCC.js +288 -0
- package/build/cjs/cc/ZWavePlusCC.js.map +7 -0
- package/build/cjs/cc/ZWaveProtocolCC.d.ts +344 -0
- package/build/cjs/cc/ZWaveProtocolCC.js +1071 -0
- package/build/cjs/cc/ZWaveProtocolCC.js.map +7 -0
- package/build/cjs/cc/index.d.ts +132 -0
- package/build/cjs/cc/index.js +1180 -0
- package/build/cjs/cc/index.js.map +7 -0
- package/build/cjs/cc/manufacturerProprietary/Decorators.d.ts +64 -0
- package/build/cjs/cc/manufacturerProprietary/Decorators.js +76 -0
- package/build/cjs/cc/manufacturerProprietary/Decorators.js.map +7 -0
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.d.ts +79 -0
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js +412 -0
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js.map +7 -0
- package/build/cjs/index.d.ts +15 -0
- package/build/cjs/index.js +77 -0
- package/build/cjs/index.js.map +7 -0
- package/build/cjs/index_safe.d.ts +3 -0
- package/build/cjs/index_safe.js +25 -0
- package/build/cjs/index_safe.js.map +7 -0
- package/build/cjs/lib/API.d.ts +271 -0
- package/build/cjs/lib/API.js +413 -0
- package/build/cjs/lib/API.js.map +7 -0
- package/build/cjs/lib/CommandClass.d.ts +234 -0
- package/build/cjs/lib/CommandClass.js +692 -0
- package/build/cjs/lib/CommandClass.js.map +7 -0
- package/build/cjs/lib/CommandClassDecorators.d.ts +112 -0
- package/build/cjs/lib/CommandClassDecorators.js +182 -0
- package/build/cjs/lib/CommandClassDecorators.js.map +7 -0
- package/build/cjs/lib/EncapsulatingCommandClass.d.ts +22 -0
- package/build/cjs/lib/EncapsulatingCommandClass.js +71 -0
- package/build/cjs/lib/EncapsulatingCommandClass.js.map +7 -0
- package/build/cjs/lib/ICommandClassContainer.js +17 -0
- package/build/cjs/lib/ICommandClassContainer.js.map +7 -0
- package/build/cjs/lib/NotificationEventPayload.d.ts +10 -0
- package/build/cjs/lib/NotificationEventPayload.js +31 -0
- package/build/cjs/lib/NotificationEventPayload.js.map +7 -0
- package/build/cjs/lib/Security2/Extension.js +333 -0
- package/build/cjs/lib/Security2/Extension.js.map +7 -0
- package/build/cjs/lib/Security2/shared.js +69 -0
- package/build/cjs/lib/Security2/shared.js.map +7 -0
- package/build/cjs/lib/SetValueResult.js +65 -0
- package/build/cjs/lib/SetValueResult.js.map +7 -0
- package/build/cjs/lib/Values.d.ts +223 -0
- package/build/cjs/lib/Values.js +191 -0
- package/build/cjs/lib/Values.js.map +7 -0
- package/build/cjs/lib/_Types.js +1676 -0
- package/build/cjs/lib/_Types.js.map +7 -0
- package/build/cjs/lib/serializers.d.ts +34 -0
- package/build/cjs/lib/serializers.js +110 -0
- package/build/cjs/lib/serializers.js.map +7 -0
- package/build/cjs/lib/utils.d.ts +17 -0
- package/build/cjs/lib/utils.js +678 -0
- package/build/cjs/lib/utils.js.map +7 -0
- package/build/cjs/package.json +3 -0
- package/build/esm/cc/AlarmSensorCC.d.ts +194 -0
- package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -0
- package/build/esm/cc/AlarmSensorCC.js +392 -0
- package/build/esm/cc/AlarmSensorCC.js.map +1 -0
- package/build/esm/cc/AssociationCC.d.ts +253 -0
- package/build/esm/cc/AssociationCC.d.ts.map +1 -0
- package/build/esm/cc/AssociationCC.js +706 -0
- package/build/esm/cc/AssociationCC.js.map +1 -0
- package/build/esm/cc/AssociationGroupInfoCC.d.ts +230 -0
- package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -0
- package/build/esm/cc/AssociationGroupInfoCC.js +769 -0
- package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -0
- package/build/esm/cc/BarrierOperatorCC.d.ts +243 -0
- package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -0
- package/build/esm/cc/BarrierOperatorCC.js +610 -0
- package/build/esm/cc/BarrierOperatorCC.js.map +1 -0
- package/build/esm/cc/BasicCC.d.ts +191 -0
- package/build/esm/cc/BasicCC.d.ts.map +1 -0
- package/build/esm/cc/BasicCC.js +390 -0
- package/build/esm/cc/BasicCC.js.map +1 -0
- package/build/esm/cc/BatteryCC.d.ts +406 -0
- package/build/esm/cc/BatteryCC.d.ts.map +1 -0
- package/build/esm/cc/BatteryCC.js +513 -0
- package/build/esm/cc/BatteryCC.js.map +1 -0
- package/build/esm/cc/BinarySensorCC.d.ts +122 -0
- package/build/esm/cc/BinarySensorCC.d.ts.map +1 -0
- package/build/esm/cc/BinarySensorCC.js +417 -0
- package/build/esm/cc/BinarySensorCC.js.map +1 -0
- package/build/esm/cc/BinarySwitchCC.d.ts +139 -0
- package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -0
- package/build/esm/cc/BinarySwitchCC.js +362 -0
- package/build/esm/cc/BinarySwitchCC.js.map +1 -0
- package/build/esm/cc/CRC16CC.d.ts +29 -0
- package/build/esm/cc/CRC16CC.d.ts.map +1 -0
- package/build/esm/cc/CRC16CC.js +123 -0
- package/build/esm/cc/CRC16CC.js.map +1 -0
- package/build/esm/cc/CentralSceneCC.d.ts +210 -0
- package/build/esm/cc/CentralSceneCC.d.ts.map +1 -0
- package/build/esm/cc/CentralSceneCC.js +427 -0
- package/build/esm/cc/CentralSceneCC.js.map +1 -0
- package/build/esm/cc/ClimateControlScheduleCC.d.ts +177 -0
- package/build/esm/cc/ClimateControlScheduleCC.d.ts.map +1 -0
- package/build/esm/cc/ClimateControlScheduleCC.js +466 -0
- package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -0
- package/build/esm/cc/ClockCC.d.ts +47 -0
- package/build/esm/cc/ClockCC.d.ts.map +1 -0
- package/build/esm/cc/ClockCC.js +205 -0
- package/build/esm/cc/ClockCC.js.map +1 -0
- package/build/esm/cc/ColorSwitchCC.d.ts +339 -0
- package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -0
- package/build/esm/cc/ColorSwitchCC.js +1149 -0
- package/build/esm/cc/ColorSwitchCC.js.map +1 -0
- package/build/esm/cc/ConfigurationCC.d.ts +396 -0
- package/build/esm/cc/ConfigurationCC.d.ts.map +1 -0
- package/build/esm/cc/ConfigurationCC.js +2454 -0
- package/build/esm/cc/ConfigurationCC.js.map +1 -0
- package/build/esm/cc/DeviceResetLocallyCC.d.ts +17 -0
- package/build/esm/cc/DeviceResetLocallyCC.d.ts.map +1 -0
- package/build/esm/cc/DeviceResetLocallyCC.js +73 -0
- package/build/esm/cc/DeviceResetLocallyCC.js.map +1 -0
- package/build/esm/cc/DoorLockCC.d.ts +837 -0
- package/build/esm/cc/DoorLockCC.d.ts.map +1 -0
- package/build/esm/cc/DoorLockCC.js +1270 -0
- package/build/esm/cc/DoorLockCC.js.map +1 -0
- package/build/esm/cc/DoorLockLoggingCC.d.ts +77 -0
- package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -0
- package/build/esm/cc/DoorLockLoggingCC.js +316 -0
- package/build/esm/cc/DoorLockLoggingCC.js.map +1 -0
- package/build/esm/cc/EnergyProductionCC.d.ts +77 -0
- package/build/esm/cc/EnergyProductionCC.d.ts.map +1 -0
- package/build/esm/cc/EnergyProductionCC.js +213 -0
- package/build/esm/cc/EnergyProductionCC.js.map +1 -0
- package/build/esm/cc/EntryControlCC.d.ts +231 -0
- package/build/esm/cc/EntryControlCC.d.ts.map +1 -0
- package/build/esm/cc/EntryControlCC.js +581 -0
- package/build/esm/cc/EntryControlCC.js.map +1 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts +359 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js +1142 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -0
- package/build/esm/cc/HailCC.d.ts +6 -0
- package/build/esm/cc/HailCC.d.ts.map +1 -0
- package/build/esm/cc/HailCC.js +21 -0
- package/build/esm/cc/HailCC.js.map +1 -0
- package/build/esm/cc/HumidityControlModeCC.d.ts +111 -0
- package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -0
- package/build/esm/cc/HumidityControlModeCC.js +305 -0
- package/build/esm/cc/HumidityControlModeCC.js.map +1 -0
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts +60 -0
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts.map +1 -0
- package/build/esm/cc/HumidityControlOperatingStateCC.js +137 -0
- package/build/esm/cc/HumidityControlOperatingStateCC.js.map +1 -0
- package/build/esm/cc/HumidityControlSetpointCC.d.ts +209 -0
- package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -0
- package/build/esm/cc/HumidityControlSetpointCC.js +645 -0
- package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -0
- package/build/esm/cc/InclusionControllerCC.d.ts +42 -0
- package/build/esm/cc/InclusionControllerCC.d.ts.map +1 -0
- package/build/esm/cc/InclusionControllerCC.js +133 -0
- package/build/esm/cc/InclusionControllerCC.js.map +1 -0
- package/build/esm/cc/IndicatorCC.d.ts +338 -0
- package/build/esm/cc/IndicatorCC.d.ts.map +1 -0
- package/build/esm/cc/IndicatorCC.js +1317 -0
- package/build/esm/cc/IndicatorCC.js.map +1 -0
- package/build/esm/cc/IrrigationCC.d.ts +1496 -0
- package/build/esm/cc/IrrigationCC.d.ts.map +1 -0
- package/build/esm/cc/IrrigationCC.js +2038 -0
- package/build/esm/cc/IrrigationCC.js.map +1 -0
- package/build/esm/cc/LanguageCC.d.ts +101 -0
- package/build/esm/cc/LanguageCC.d.ts.map +1 -0
- package/build/esm/cc/LanguageCC.js +243 -0
- package/build/esm/cc/LanguageCC.js.map +1 -0
- package/build/esm/cc/LockCC.d.ts +73 -0
- package/build/esm/cc/LockCC.d.ts.map +1 -0
- package/build/esm/cc/LockCC.js +197 -0
- package/build/esm/cc/LockCC.js.map +1 -0
- package/build/esm/cc/ManufacturerProprietaryCC.d.ts +32 -0
- package/build/esm/cc/ManufacturerProprietaryCC.d.ts.map +1 -0
- package/build/esm/cc/ManufacturerProprietaryCC.js +201 -0
- package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -0
- package/build/esm/cc/ManufacturerSpecificCC.d.ts +171 -0
- package/build/esm/cc/ManufacturerSpecificCC.d.ts.map +1 -0
- package/build/esm/cc/ManufacturerSpecificCC.js +315 -0
- package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -0
- package/build/esm/cc/MeterCC.d.ts +318 -0
- package/build/esm/cc/MeterCC.d.ts.map +1 -0
- package/build/esm/cc/MeterCC.js +1308 -0
- package/build/esm/cc/MeterCC.js.map +1 -0
- package/build/esm/cc/MultiChannelAssociationCC.d.ts +241 -0
- package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -0
- package/build/esm/cc/MultiChannelAssociationCC.js +981 -0
- package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -0
- package/build/esm/cc/MultiChannelCC.d.ts +394 -0
- package/build/esm/cc/MultiChannelCC.d.ts.map +1 -0
- package/build/esm/cc/MultiChannelCC.js +1127 -0
- package/build/esm/cc/MultiChannelCC.js.map +1 -0
- package/build/esm/cc/MultiCommandCC.d.ts +27 -0
- package/build/esm/cc/MultiCommandCC.d.ts.map +1 -0
- package/build/esm/cc/MultiCommandCC.js +142 -0
- package/build/esm/cc/MultiCommandCC.js.map +1 -0
- package/build/esm/cc/MultilevelSensorCC.d.ts +185 -0
- package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -0
- package/build/esm/cc/MultilevelSensorCC.js +753 -0
- package/build/esm/cc/MultilevelSensorCC.js.map +1 -0
- package/build/esm/cc/MultilevelSwitchCC.d.ts +357 -0
- package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -0
- package/build/esm/cc/MultilevelSwitchCC.js +810 -0
- package/build/esm/cc/MultilevelSwitchCC.js.map +1 -0
- package/build/esm/cc/NoOperationCC.d.ts +9 -0
- package/build/esm/cc/NoOperationCC.d.ts.map +1 -0
- package/build/esm/cc/NoOperationCC.js +39 -0
- package/build/esm/cc/NoOperationCC.js.map +1 -0
- package/build/esm/cc/NodeNamingCC.d.ts +118 -0
- package/build/esm/cc/NodeNamingCC.d.ts.map +1 -0
- package/build/esm/cc/NodeNamingCC.js +345 -0
- package/build/esm/cc/NodeNamingCC.js.map +1 -0
- package/build/esm/cc/NotificationCC.d.ts +479 -0
- package/build/esm/cc/NotificationCC.d.ts.map +1 -0
- package/build/esm/cc/NotificationCC.js +1350 -0
- package/build/esm/cc/NotificationCC.js.map +1 -0
- package/build/esm/cc/PowerlevelCC.d.ts +82 -0
- package/build/esm/cc/PowerlevelCC.d.ts.map +1 -0
- package/build/esm/cc/PowerlevelCC.js +485 -0
- package/build/esm/cc/PowerlevelCC.js.map +1 -0
- package/build/esm/cc/ProtectionCC.d.ts +325 -0
- package/build/esm/cc/ProtectionCC.d.ts.map +1 -0
- package/build/esm/cc/ProtectionCC.js +669 -0
- package/build/esm/cc/ProtectionCC.js.map +1 -0
- package/build/esm/cc/SceneActivationCC.d.ts +89 -0
- package/build/esm/cc/SceneActivationCC.d.ts.map +1 -0
- package/build/esm/cc/SceneActivationCC.js +166 -0
- package/build/esm/cc/SceneActivationCC.js.map +1 -0
- package/build/esm/cc/SceneActuatorConfigurationCC.d.ts +120 -0
- package/build/esm/cc/SceneActuatorConfigurationCC.d.ts.map +1 -0
- package/build/esm/cc/SceneActuatorConfigurationCC.js +374 -0
- package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -0
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts +129 -0
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts.map +1 -0
- package/build/esm/cc/SceneControllerConfigurationCC.js +446 -0
- package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -0
- package/build/esm/cc/ScheduleEntryLockCC.d.ts +434 -0
- package/build/esm/cc/ScheduleEntryLockCC.d.ts.map +1 -0
- package/build/esm/cc/ScheduleEntryLockCC.js +1826 -0
- package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -0
- package/build/esm/cc/Security2CC.d.ts +251 -0
- package/build/esm/cc/Security2CC.d.ts.map +1 -0
- package/build/esm/cc/Security2CC.js +1814 -0
- package/build/esm/cc/Security2CC.js.map +1 -0
- package/build/esm/cc/SecurityCC.d.ts +128 -0
- package/build/esm/cc/SecurityCC.d.ts.map +1 -0
- package/build/esm/cc/SecurityCC.js +800 -0
- package/build/esm/cc/SecurityCC.js.map +1 -0
- package/build/esm/cc/SoundSwitchCC.d.ts +232 -0
- package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -0
- package/build/esm/cc/SoundSwitchCC.js +633 -0
- package/build/esm/cc/SoundSwitchCC.js.map +1 -0
- package/build/esm/cc/SupervisionCC.d.ts +104 -0
- package/build/esm/cc/SupervisionCC.d.ts.map +1 -0
- package/build/esm/cc/SupervisionCC.js +319 -0
- package/build/esm/cc/SupervisionCC.js.map +1 -0
- package/build/esm/cc/ThermostatFanModeCC.d.ts +141 -0
- package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatFanModeCC.js +359 -0
- package/build/esm/cc/ThermostatFanModeCC.js.map +1 -0
- package/build/esm/cc/ThermostatFanStateCC.d.ts +60 -0
- package/build/esm/cc/ThermostatFanStateCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatFanStateCC.js +139 -0
- package/build/esm/cc/ThermostatFanStateCC.js.map +1 -0
- package/build/esm/cc/ThermostatModeCC.d.ts +150 -0
- package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatModeCC.js +426 -0
- package/build/esm/cc/ThermostatModeCC.js.map +1 -0
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts +61 -0
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatOperatingStateCC.js +135 -0
- package/build/esm/cc/ThermostatOperatingStateCC.js.map +1 -0
- package/build/esm/cc/ThermostatSetbackCC.d.ts +46 -0
- package/build/esm/cc/ThermostatSetbackCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatSetbackCC.js +244 -0
- package/build/esm/cc/ThermostatSetbackCC.js.map +1 -0
- package/build/esm/cc/ThermostatSetpointCC.d.ts +197 -0
- package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatSetpointCC.js +655 -0
- package/build/esm/cc/ThermostatSetpointCC.js.map +1 -0
- package/build/esm/cc/TimeCC.d.ts +88 -0
- package/build/esm/cc/TimeCC.d.ts.map +1 -0
- package/build/esm/cc/TimeCC.js +451 -0
- package/build/esm/cc/TimeCC.js.map +1 -0
- package/build/esm/cc/TimeParametersCC.d.ts +72 -0
- package/build/esm/cc/TimeParametersCC.d.ts.map +1 -0
- package/build/esm/cc/TimeParametersCC.js +300 -0
- package/build/esm/cc/TimeParametersCC.js.map +1 -0
- package/build/esm/cc/TransportServiceCC.d.ts +107 -0
- package/build/esm/cc/TransportServiceCC.d.ts.map +1 -0
- package/build/esm/cc/TransportServiceCC.js +422 -0
- package/build/esm/cc/TransportServiceCC.js.map +1 -0
- package/build/esm/cc/UserCodeCC.d.ts +683 -0
- package/build/esm/cc/UserCodeCC.d.ts.map +1 -0
- package/build/esm/cc/UserCodeCC.js +1695 -0
- package/build/esm/cc/UserCodeCC.js.map +1 -0
- package/build/esm/cc/VersionCC.d.ts +469 -0
- package/build/esm/cc/VersionCC.d.ts.map +1 -0
- package/build/esm/cc/VersionCC.js +862 -0
- package/build/esm/cc/VersionCC.js.map +1 -0
- package/build/esm/cc/WakeUpCC.d.ts +150 -0
- package/build/esm/cc/WakeUpCC.d.ts.map +1 -0
- package/build/esm/cc/WakeUpCC.js +438 -0
- package/build/esm/cc/WakeUpCC.js.map +1 -0
- package/build/esm/cc/WindowCoveringCC.d.ts +315 -0
- package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -0
- package/build/esm/cc/WindowCoveringCC.js +780 -0
- package/build/esm/cc/WindowCoveringCC.js.map +1 -0
- package/build/esm/cc/ZWaveLongRangeCC.d.ts +4 -0
- package/build/esm/cc/ZWaveLongRangeCC.d.ts.map +1 -0
- package/build/esm/cc/ZWaveLongRangeCC.js +17 -0
- package/build/esm/cc/ZWaveLongRangeCC.js.map +1 -0
- package/build/esm/cc/ZWavePlusCC.d.ts +163 -0
- package/build/esm/cc/ZWavePlusCC.d.ts.map +1 -0
- package/build/esm/cc/ZWavePlusCC.js +267 -0
- package/build/esm/cc/ZWavePlusCC.js.map +1 -0
- package/build/esm/cc/ZWaveProtocolCC.d.ts +344 -0
- package/build/esm/cc/ZWaveProtocolCC.d.ts.map +1 -0
- package/build/esm/cc/ZWaveProtocolCC.js +1030 -0
- package/build/esm/cc/ZWaveProtocolCC.js.map +1 -0
- package/build/esm/cc/index.d.ts +132 -0
- package/build/esm/cc/index.d.ts.map +1 -0
- package/build/esm/cc/index.js +71 -0
- package/build/esm/cc/index.js.map +1 -0
- package/build/esm/cc/manufacturerProprietary/Decorators.d.ts +64 -0
- package/build/esm/cc/manufacturerProprietary/Decorators.d.ts.map +1 -0
- package/build/esm/cc/manufacturerProprietary/Decorators.js +79 -0
- package/build/esm/cc/manufacturerProprietary/Decorators.js.map +1 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts +79 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts.map +1 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js +385 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js.map +1 -0
- package/build/esm/index.d.ts +15 -0
- package/build/esm/index.d.ts.map +1 -0
- package/build/esm/index.js +14 -0
- package/build/esm/index.js.map +1 -0
- package/build/esm/index_safe.d.ts +3 -0
- package/build/esm/index_safe.d.ts.map +1 -0
- package/build/esm/index_safe.js +4 -0
- package/build/esm/index_safe.js.map +1 -0
- package/build/esm/lib/API.d.ts +271 -0
- package/build/esm/lib/API.d.ts.map +1 -0
- package/build/esm/lib/API.js +448 -0
- package/build/esm/lib/API.js.map +1 -0
- package/build/esm/lib/CommandClass.d.ts +234 -0
- package/build/esm/lib/CommandClass.d.ts.map +1 -0
- package/build/esm/lib/CommandClass.js +781 -0
- package/build/esm/lib/CommandClass.js.map +1 -0
- package/build/esm/lib/CommandClassDecorators.d.ts +112 -0
- package/build/esm/lib/CommandClassDecorators.d.ts.map +1 -0
- package/build/esm/lib/CommandClassDecorators.js +229 -0
- package/build/esm/lib/CommandClassDecorators.js.map +1 -0
- package/build/esm/lib/EncapsulatingCommandClass.d.ts +22 -0
- package/build/esm/lib/EncapsulatingCommandClass.d.ts.map +1 -0
- package/build/esm/lib/EncapsulatingCommandClass.js +56 -0
- package/build/esm/lib/EncapsulatingCommandClass.js.map +1 -0
- package/build/esm/lib/ICommandClassContainer.d.ts +2 -0
- package/build/esm/lib/ICommandClassContainer.d.ts.map +1 -0
- package/build/esm/lib/ICommandClassContainer.js +2 -0
- package/build/esm/lib/ICommandClassContainer.js.map +1 -0
- package/build/esm/lib/NotificationEventPayload.d.ts +10 -0
- package/build/esm/lib/NotificationEventPayload.d.ts.map +1 -0
- package/build/esm/lib/NotificationEventPayload.js +7 -0
- package/build/esm/lib/NotificationEventPayload.js.map +1 -0
- package/build/esm/lib/Security2/Extension.d.ts +106 -0
- package/build/esm/lib/Security2/Extension.d.ts.map +1 -0
- package/build/esm/lib/Security2/Extension.js +296 -0
- package/build/esm/lib/Security2/Extension.js.map +1 -0
- package/build/esm/lib/Security2/shared.d.ts +37 -0
- package/build/esm/lib/Security2/shared.d.ts.map +1 -0
- package/build/esm/lib/Security2/shared.js +40 -0
- package/build/esm/lib/Security2/shared.js.map +1 -0
- package/build/esm/lib/SetValueResult.d.ts +55 -0
- package/build/esm/lib/SetValueResult.d.ts.map +1 -0
- package/build/esm/lib/SetValueResult.js +53 -0
- package/build/esm/lib/SetValueResult.js.map +1 -0
- package/build/esm/lib/Values.d.ts +223 -0
- package/build/esm/lib/Values.d.ts.map +1 -0
- package/build/esm/lib/Values.js +169 -0
- package/build/esm/lib/Values.js.map +1 -0
- package/build/esm/lib/_Types.d.ts +1461 -0
- package/build/esm/lib/_Types.d.ts.map +1 -0
- package/build/esm/lib/_Types.js +1432 -0
- package/build/esm/lib/_Types.js.map +1 -0
- package/build/esm/lib/serializers.d.ts +34 -0
- package/build/esm/lib/serializers.d.ts.map +1 -0
- package/build/esm/lib/serializers.js +98 -0
- package/build/esm/lib/serializers.js.map +1 -0
- package/build/esm/lib/utils.d.ts +17 -0
- package/build/esm/lib/utils.d.ts.map +1 -0
- package/build/esm/lib/utils.js +847 -0
- package/build/esm/lib/utils.js.map +1 -0
- package/build/esm/package.json +3 -0
- package/package.json +28 -23
- package/build/cc/AlarmSensorCC.d.ts +0 -194
- package/build/cc/AlarmSensorCC.d.ts.map +0 -1
- package/build/cc/AlarmSensorCC.js +0 -395
- package/build/cc/AlarmSensorCC.js.map +0 -1
- package/build/cc/AssociationCC.d.ts +0 -253
- package/build/cc/AssociationCC.d.ts.map +0 -1
- package/build/cc/AssociationCC.js +0 -732
- package/build/cc/AssociationCC.js.map +0 -1
- package/build/cc/AssociationGroupInfoCC.d.ts +0 -230
- package/build/cc/AssociationGroupInfoCC.d.ts.map +0 -1
- package/build/cc/AssociationGroupInfoCC.js +0 -772
- package/build/cc/AssociationGroupInfoCC.js.map +0 -1
- package/build/cc/BarrierOperatorCC.d.ts +0 -243
- package/build/cc/BarrierOperatorCC.d.ts.map +0 -1
- package/build/cc/BarrierOperatorCC.js +0 -613
- package/build/cc/BarrierOperatorCC.js.map +0 -1
- package/build/cc/BasicCC.d.ts +0 -191
- package/build/cc/BasicCC.d.ts.map +0 -1
- package/build/cc/BasicCC.js +0 -393
- package/build/cc/BasicCC.js.map +0 -1
- package/build/cc/BatteryCC.d.ts +0 -406
- package/build/cc/BatteryCC.d.ts.map +0 -1
- package/build/cc/BatteryCC.js +0 -516
- package/build/cc/BatteryCC.js.map +0 -1
- package/build/cc/BinarySensorCC.d.ts +0 -122
- package/build/cc/BinarySensorCC.d.ts.map +0 -1
- package/build/cc/BinarySensorCC.js +0 -420
- package/build/cc/BinarySensorCC.js.map +0 -1
- package/build/cc/BinarySwitchCC.d.ts +0 -139
- package/build/cc/BinarySwitchCC.d.ts.map +0 -1
- package/build/cc/BinarySwitchCC.js +0 -365
- package/build/cc/BinarySwitchCC.js.map +0 -1
- package/build/cc/CRC16CC.d.ts +0 -29
- package/build/cc/CRC16CC.d.ts.map +0 -1
- package/build/cc/CRC16CC.js +0 -126
- package/build/cc/CRC16CC.js.map +0 -1
- package/build/cc/CentralSceneCC.d.ts +0 -210
- package/build/cc/CentralSceneCC.d.ts.map +0 -1
- package/build/cc/CentralSceneCC.js +0 -453
- package/build/cc/CentralSceneCC.js.map +0 -1
- package/build/cc/ClimateControlScheduleCC.d.ts +0 -177
- package/build/cc/ClimateControlScheduleCC.d.ts.map +0 -1
- package/build/cc/ClimateControlScheduleCC.js +0 -469
- package/build/cc/ClimateControlScheduleCC.js.map +0 -1
- package/build/cc/ClockCC.d.ts +0 -47
- package/build/cc/ClockCC.d.ts.map +0 -1
- package/build/cc/ClockCC.js +0 -208
- package/build/cc/ClockCC.js.map +0 -1
- package/build/cc/ColorSwitchCC.d.ts +0 -339
- package/build/cc/ColorSwitchCC.d.ts.map +0 -1
- package/build/cc/ColorSwitchCC.js +0 -1152
- package/build/cc/ColorSwitchCC.js.map +0 -1
- package/build/cc/ConfigurationCC.d.ts +0 -396
- package/build/cc/ConfigurationCC.d.ts.map +0 -1
- package/build/cc/ConfigurationCC.js +0 -2458
- package/build/cc/ConfigurationCC.js.map +0 -1
- package/build/cc/DeviceResetLocallyCC.d.ts +0 -17
- package/build/cc/DeviceResetLocallyCC.d.ts.map +0 -1
- package/build/cc/DeviceResetLocallyCC.js +0 -76
- package/build/cc/DeviceResetLocallyCC.js.map +0 -1
- package/build/cc/DoorLockCC.d.ts +0 -837
- package/build/cc/DoorLockCC.d.ts.map +0 -1
- package/build/cc/DoorLockCC.js +0 -1273
- package/build/cc/DoorLockCC.js.map +0 -1
- package/build/cc/DoorLockLoggingCC.d.ts +0 -77
- package/build/cc/DoorLockLoggingCC.d.ts.map +0 -1
- package/build/cc/DoorLockLoggingCC.js +0 -319
- package/build/cc/DoorLockLoggingCC.js.map +0 -1
- package/build/cc/EnergyProductionCC.d.ts +0 -77
- package/build/cc/EnergyProductionCC.d.ts.map +0 -1
- package/build/cc/EnergyProductionCC.js +0 -216
- package/build/cc/EnergyProductionCC.js.map +0 -1
- package/build/cc/EntryControlCC.d.ts +0 -231
- package/build/cc/EntryControlCC.d.ts.map +0 -1
- package/build/cc/EntryControlCC.js +0 -607
- package/build/cc/EntryControlCC.js.map +0 -1
- package/build/cc/FirmwareUpdateMetaDataCC.d.ts +0 -359
- package/build/cc/FirmwareUpdateMetaDataCC.d.ts.map +0 -1
- package/build/cc/FirmwareUpdateMetaDataCC.js +0 -1145
- package/build/cc/FirmwareUpdateMetaDataCC.js.map +0 -1
- package/build/cc/HailCC.d.ts +0 -6
- package/build/cc/HailCC.d.ts.map +0 -1
- package/build/cc/HailCC.js +0 -24
- package/build/cc/HailCC.js.map +0 -1
- package/build/cc/HumidityControlModeCC.d.ts +0 -111
- package/build/cc/HumidityControlModeCC.d.ts.map +0 -1
- package/build/cc/HumidityControlModeCC.js +0 -308
- package/build/cc/HumidityControlModeCC.js.map +0 -1
- package/build/cc/HumidityControlOperatingStateCC.d.ts +0 -60
- package/build/cc/HumidityControlOperatingStateCC.d.ts.map +0 -1
- package/build/cc/HumidityControlOperatingStateCC.js +0 -140
- package/build/cc/HumidityControlOperatingStateCC.js.map +0 -1
- package/build/cc/HumidityControlSetpointCC.d.ts +0 -209
- package/build/cc/HumidityControlSetpointCC.d.ts.map +0 -1
- package/build/cc/HumidityControlSetpointCC.js +0 -648
- package/build/cc/HumidityControlSetpointCC.js.map +0 -1
- package/build/cc/InclusionControllerCC.d.ts +0 -42
- package/build/cc/InclusionControllerCC.d.ts.map +0 -1
- package/build/cc/InclusionControllerCC.js +0 -136
- package/build/cc/InclusionControllerCC.js.map +0 -1
- package/build/cc/IndicatorCC.d.ts +0 -338
- package/build/cc/IndicatorCC.d.ts.map +0 -1
- package/build/cc/IndicatorCC.js +0 -1320
- package/build/cc/IndicatorCC.js.map +0 -1
- package/build/cc/IrrigationCC.d.ts +0 -1496
- package/build/cc/IrrigationCC.d.ts.map +0 -1
- package/build/cc/IrrigationCC.js +0 -2041
- package/build/cc/IrrigationCC.js.map +0 -1
- package/build/cc/LanguageCC.d.ts +0 -101
- package/build/cc/LanguageCC.d.ts.map +0 -1
- package/build/cc/LanguageCC.js +0 -246
- package/build/cc/LanguageCC.js.map +0 -1
- package/build/cc/LockCC.d.ts +0 -73
- package/build/cc/LockCC.d.ts.map +0 -1
- package/build/cc/LockCC.js +0 -200
- package/build/cc/LockCC.js.map +0 -1
- package/build/cc/ManufacturerProprietaryCC.d.ts +0 -32
- package/build/cc/ManufacturerProprietaryCC.d.ts.map +0 -1
- package/build/cc/ManufacturerProprietaryCC.js +0 -204
- package/build/cc/ManufacturerProprietaryCC.js.map +0 -1
- package/build/cc/ManufacturerSpecificCC.d.ts +0 -171
- package/build/cc/ManufacturerSpecificCC.d.ts.map +0 -1
- package/build/cc/ManufacturerSpecificCC.js +0 -318
- package/build/cc/ManufacturerSpecificCC.js.map +0 -1
- package/build/cc/MeterCC.d.ts +0 -318
- package/build/cc/MeterCC.d.ts.map +0 -1
- package/build/cc/MeterCC.js +0 -1312
- package/build/cc/MeterCC.js.map +0 -1
- package/build/cc/MultiChannelAssociationCC.d.ts +0 -241
- package/build/cc/MultiChannelAssociationCC.d.ts.map +0 -1
- package/build/cc/MultiChannelAssociationCC.js +0 -1007
- package/build/cc/MultiChannelAssociationCC.js.map +0 -1
- package/build/cc/MultiChannelCC.d.ts +0 -394
- package/build/cc/MultiChannelCC.d.ts.map +0 -1
- package/build/cc/MultiChannelCC.js +0 -1130
- package/build/cc/MultiChannelCC.js.map +0 -1
- package/build/cc/MultiCommandCC.d.ts +0 -27
- package/build/cc/MultiCommandCC.d.ts.map +0 -1
- package/build/cc/MultiCommandCC.js +0 -145
- package/build/cc/MultiCommandCC.js.map +0 -1
- package/build/cc/MultilevelSensorCC.d.ts +0 -185
- package/build/cc/MultilevelSensorCC.d.ts.map +0 -1
- package/build/cc/MultilevelSensorCC.js +0 -756
- package/build/cc/MultilevelSensorCC.js.map +0 -1
- package/build/cc/MultilevelSwitchCC.d.ts +0 -357
- package/build/cc/MultilevelSwitchCC.d.ts.map +0 -1
- package/build/cc/MultilevelSwitchCC.js +0 -813
- package/build/cc/MultilevelSwitchCC.js.map +0 -1
- package/build/cc/NoOperationCC.d.ts +0 -9
- package/build/cc/NoOperationCC.d.ts.map +0 -1
- package/build/cc/NoOperationCC.js +0 -42
- package/build/cc/NoOperationCC.js.map +0 -1
- package/build/cc/NodeNamingCC.d.ts +0 -118
- package/build/cc/NodeNamingCC.d.ts.map +0 -1
- package/build/cc/NodeNamingCC.js +0 -348
- package/build/cc/NodeNamingCC.js.map +0 -1
- package/build/cc/NotificationCC.d.ts +0 -479
- package/build/cc/NotificationCC.d.ts.map +0 -1
- package/build/cc/NotificationCC.js +0 -1379
- package/build/cc/NotificationCC.js.map +0 -1
- package/build/cc/PowerlevelCC.d.ts +0 -82
- package/build/cc/PowerlevelCC.d.ts.map +0 -1
- package/build/cc/PowerlevelCC.js +0 -488
- package/build/cc/PowerlevelCC.js.map +0 -1
- package/build/cc/ProtectionCC.d.ts +0 -325
- package/build/cc/ProtectionCC.d.ts.map +0 -1
- package/build/cc/ProtectionCC.js +0 -672
- package/build/cc/ProtectionCC.js.map +0 -1
- package/build/cc/SceneActivationCC.d.ts +0 -89
- package/build/cc/SceneActivationCC.d.ts.map +0 -1
- package/build/cc/SceneActivationCC.js +0 -169
- package/build/cc/SceneActivationCC.js.map +0 -1
- package/build/cc/SceneActuatorConfigurationCC.d.ts +0 -120
- package/build/cc/SceneActuatorConfigurationCC.d.ts.map +0 -1
- package/build/cc/SceneActuatorConfigurationCC.js +0 -377
- package/build/cc/SceneActuatorConfigurationCC.js.map +0 -1
- package/build/cc/SceneControllerConfigurationCC.d.ts +0 -129
- package/build/cc/SceneControllerConfigurationCC.d.ts.map +0 -1
- package/build/cc/SceneControllerConfigurationCC.js +0 -449
- package/build/cc/SceneControllerConfigurationCC.js.map +0 -1
- package/build/cc/ScheduleEntryLockCC.d.ts +0 -434
- package/build/cc/ScheduleEntryLockCC.d.ts.map +0 -1
- package/build/cc/ScheduleEntryLockCC.js +0 -1829
- package/build/cc/ScheduleEntryLockCC.js.map +0 -1
- package/build/cc/Security2CC.d.ts +0 -251
- package/build/cc/Security2CC.d.ts.map +0 -1
- package/build/cc/Security2CC.js +0 -1817
- package/build/cc/Security2CC.js.map +0 -1
- package/build/cc/SecurityCC.d.ts +0 -128
- package/build/cc/SecurityCC.d.ts.map +0 -1
- package/build/cc/SecurityCC.js +0 -803
- package/build/cc/SecurityCC.js.map +0 -1
- package/build/cc/SoundSwitchCC.d.ts +0 -232
- package/build/cc/SoundSwitchCC.d.ts.map +0 -1
- package/build/cc/SoundSwitchCC.js +0 -636
- package/build/cc/SoundSwitchCC.js.map +0 -1
- package/build/cc/SupervisionCC.d.ts +0 -104
- package/build/cc/SupervisionCC.d.ts.map +0 -1
- package/build/cc/SupervisionCC.js +0 -322
- package/build/cc/SupervisionCC.js.map +0 -1
- package/build/cc/ThermostatFanModeCC.d.ts +0 -141
- package/build/cc/ThermostatFanModeCC.d.ts.map +0 -1
- package/build/cc/ThermostatFanModeCC.js +0 -362
- package/build/cc/ThermostatFanModeCC.js.map +0 -1
- package/build/cc/ThermostatFanStateCC.d.ts +0 -60
- package/build/cc/ThermostatFanStateCC.d.ts.map +0 -1
- package/build/cc/ThermostatFanStateCC.js +0 -142
- package/build/cc/ThermostatFanStateCC.js.map +0 -1
- package/build/cc/ThermostatModeCC.d.ts +0 -150
- package/build/cc/ThermostatModeCC.d.ts.map +0 -1
- package/build/cc/ThermostatModeCC.js +0 -429
- package/build/cc/ThermostatModeCC.js.map +0 -1
- package/build/cc/ThermostatOperatingStateCC.d.ts +0 -61
- package/build/cc/ThermostatOperatingStateCC.d.ts.map +0 -1
- package/build/cc/ThermostatOperatingStateCC.js +0 -138
- package/build/cc/ThermostatOperatingStateCC.js.map +0 -1
- package/build/cc/ThermostatSetbackCC.d.ts +0 -46
- package/build/cc/ThermostatSetbackCC.d.ts.map +0 -1
- package/build/cc/ThermostatSetbackCC.js +0 -247
- package/build/cc/ThermostatSetbackCC.js.map +0 -1
- package/build/cc/ThermostatSetpointCC.d.ts +0 -197
- package/build/cc/ThermostatSetpointCC.d.ts.map +0 -1
- package/build/cc/ThermostatSetpointCC.js +0 -658
- package/build/cc/ThermostatSetpointCC.js.map +0 -1
- package/build/cc/TimeCC.d.ts +0 -88
- package/build/cc/TimeCC.d.ts.map +0 -1
- package/build/cc/TimeCC.js +0 -454
- package/build/cc/TimeCC.js.map +0 -1
- package/build/cc/TimeParametersCC.d.ts +0 -72
- package/build/cc/TimeParametersCC.d.ts.map +0 -1
- package/build/cc/TimeParametersCC.js +0 -303
- package/build/cc/TimeParametersCC.js.map +0 -1
- package/build/cc/TransportServiceCC.d.ts +0 -107
- package/build/cc/TransportServiceCC.d.ts.map +0 -1
- package/build/cc/TransportServiceCC.js +0 -426
- package/build/cc/TransportServiceCC.js.map +0 -1
- package/build/cc/UserCodeCC.d.ts +0 -683
- package/build/cc/UserCodeCC.d.ts.map +0 -1
- package/build/cc/UserCodeCC.js +0 -1699
- package/build/cc/UserCodeCC.js.map +0 -1
- package/build/cc/VersionCC.d.ts +0 -469
- package/build/cc/VersionCC.d.ts.map +0 -1
- package/build/cc/VersionCC.js +0 -865
- package/build/cc/VersionCC.js.map +0 -1
- package/build/cc/WakeUpCC.d.ts +0 -150
- package/build/cc/WakeUpCC.d.ts.map +0 -1
- package/build/cc/WakeUpCC.js +0 -441
- package/build/cc/WakeUpCC.js.map +0 -1
- package/build/cc/WindowCoveringCC.d.ts +0 -315
- package/build/cc/WindowCoveringCC.d.ts.map +0 -1
- package/build/cc/WindowCoveringCC.js +0 -783
- package/build/cc/WindowCoveringCC.js.map +0 -1
- package/build/cc/ZWaveLongRangeCC.d.ts +0 -4
- package/build/cc/ZWaveLongRangeCC.d.ts.map +0 -1
- package/build/cc/ZWaveLongRangeCC.js +0 -20
- package/build/cc/ZWaveLongRangeCC.js.map +0 -1
- package/build/cc/ZWavePlusCC.d.ts +0 -163
- package/build/cc/ZWavePlusCC.d.ts.map +0 -1
- package/build/cc/ZWavePlusCC.js +0 -270
- package/build/cc/ZWavePlusCC.js.map +0 -1
- package/build/cc/ZWaveProtocolCC.d.ts +0 -344
- package/build/cc/ZWaveProtocolCC.d.ts.map +0 -1
- package/build/cc/ZWaveProtocolCC.js +0 -1033
- package/build/cc/ZWaveProtocolCC.js.map +0 -1
- package/build/cc/index.d.ts +0 -132
- package/build/cc/index.d.ts.map +0 -1
- package/build/cc/index.js +0 -627
- package/build/cc/index.js.map +0 -1
- package/build/cc/manufacturerProprietary/Decorators.d.ts +0 -64
- package/build/cc/manufacturerProprietary/Decorators.d.ts.map +0 -1
- package/build/cc/manufacturerProprietary/Decorators.js +0 -83
- package/build/cc/manufacturerProprietary/Decorators.js.map +0 -1
- package/build/cc/manufacturerProprietary/FibaroCC.d.ts +0 -79
- package/build/cc/manufacturerProprietary/FibaroCC.d.ts.map +0 -1
- package/build/cc/manufacturerProprietary/FibaroCC.js +0 -392
- package/build/cc/manufacturerProprietary/FibaroCC.js.map +0 -1
- package/build/index.d.ts +0 -15
- package/build/index.d.ts.map +0 -1
- package/build/index.js +0 -52
- package/build/index.js.map +0 -1
- package/build/index_safe.d.ts +0 -3
- package/build/index_safe.d.ts.map +0 -1
- package/build/index_safe.js +0 -20
- package/build/index_safe.js.map +0 -1
- package/build/lib/API.d.ts +0 -271
- package/build/lib/API.d.ts.map +0 -1
- package/build/lib/API.js +0 -458
- package/build/lib/API.js.map +0 -1
- package/build/lib/CommandClass.d.ts +0 -234
- package/build/lib/CommandClass.d.ts.map +0 -1
- package/build/lib/CommandClass.js +0 -788
- package/build/lib/CommandClass.js.map +0 -1
- package/build/lib/CommandClassDecorators.d.ts +0 -112
- package/build/lib/CommandClassDecorators.d.ts.map +0 -1
- package/build/lib/CommandClassDecorators.js +0 -243
- package/build/lib/CommandClassDecorators.js.map +0 -1
- package/build/lib/EncapsulatingCommandClass.d.ts +0 -22
- package/build/lib/EncapsulatingCommandClass.d.ts.map +0 -1
- package/build/lib/EncapsulatingCommandClass.js +0 -61
- package/build/lib/EncapsulatingCommandClass.js.map +0 -1
- package/build/lib/ICommandClassContainer.d.ts.map +0 -1
- package/build/lib/ICommandClassContainer.js +0 -3
- package/build/lib/ICommandClassContainer.js.map +0 -1
- package/build/lib/NotificationEventPayload.d.ts +0 -10
- package/build/lib/NotificationEventPayload.d.ts.map +0 -1
- package/build/lib/NotificationEventPayload.js +0 -10
- package/build/lib/NotificationEventPayload.js.map +0 -1
- package/build/lib/Security2/Extension.d.ts.map +0 -1
- package/build/lib/Security2/Extension.js +0 -303
- package/build/lib/Security2/Extension.js.map +0 -1
- package/build/lib/Security2/shared.d.ts.map +0 -1
- package/build/lib/Security2/shared.js +0 -43
- package/build/lib/Security2/shared.js.map +0 -1
- package/build/lib/SetValueResult.d.ts.map +0 -1
- package/build/lib/SetValueResult.js +0 -60
- package/build/lib/SetValueResult.js.map +0 -1
- package/build/lib/Values.d.ts +0 -223
- package/build/lib/Values.d.ts.map +0 -1
- package/build/lib/Values.js +0 -172
- package/build/lib/Values.js.map +0 -1
- package/build/lib/_Types.d.ts.map +0 -1
- package/build/lib/_Types.js +0 -1443
- package/build/lib/_Types.js.map +0 -1
- package/build/lib/serializers.d.ts +0 -34
- package/build/lib/serializers.d.ts.map +0 -1
- package/build/lib/serializers.js +0 -107
- package/build/lib/serializers.js.map +0 -1
- package/build/lib/utils.d.ts +0 -17
- package/build/lib/utils.d.ts.map +0 -1
- package/build/lib/utils.js +0 -860
- package/build/lib/utils.js.map +0 -1
- /package/build/{lib → cjs/lib}/ICommandClassContainer.d.ts +0 -0
- /package/build/{lib → cjs/lib}/Security2/Extension.d.ts +0 -0
- /package/build/{lib → cjs/lib}/Security2/shared.d.ts +0 -0
- /package/build/{lib → cjs/lib}/SetValueResult.d.ts +0 -0
- /package/build/{lib → cjs/lib}/_Types.d.ts +0 -0
|
@@ -1,1145 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var FirmwareUpdateMetaDataCCMetaDataReport_1, FirmwareUpdateMetaDataCCRequestReport_1, FirmwareUpdateMetaDataCCGet_1, FirmwareUpdateMetaDataCCStatusReport_1, FirmwareUpdateMetaDataCCActivationReport_1, FirmwareUpdateMetaDataCCPrepareReport_1;
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.FirmwareUpdateMetaDataCCPrepareGet = exports.FirmwareUpdateMetaDataCCPrepareReport = exports.FirmwareUpdateMetaDataCCActivationSet = exports.FirmwareUpdateMetaDataCCActivationReport = exports.FirmwareUpdateMetaDataCCStatusReport = exports.FirmwareUpdateMetaDataCCReport = exports.FirmwareUpdateMetaDataCCGet = exports.FirmwareUpdateMetaDataCCRequestGet = exports.FirmwareUpdateMetaDataCCRequestReport = exports.FirmwareUpdateMetaDataCCMetaDataGet = exports.FirmwareUpdateMetaDataCCMetaDataReport = exports.FirmwareUpdateMetaDataCC = exports.FirmwareUpdateMetaDataCCAPI = exports.FirmwareUpdateMetaDataCCValues = void 0;
|
|
11
|
-
function __assertType(argName, typeName, boundHasError) {
|
|
12
|
-
const { ZWaveError, ZWaveErrorCodes } = require("@zwave-js/core");
|
|
13
|
-
if (boundHasError()) {
|
|
14
|
-
throw new ZWaveError(typeName ? `${argName} is not a ${typeName}` : `${argName} has the wrong type`, ZWaveErrorCodes.Argument_Invalid);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
const __assertType__FirmwareUpdateMetaDataCCMetaDataReportOptions = $o => {
|
|
18
|
-
function _number($o) {
|
|
19
|
-
return typeof $o !== "number" ? {} : null;
|
|
20
|
-
}
|
|
21
|
-
function _boolean($o) {
|
|
22
|
-
return typeof $o !== "boolean" ? {} : null;
|
|
23
|
-
}
|
|
24
|
-
function sa__number_ea_3($o) {
|
|
25
|
-
if (!Array.isArray($o))
|
|
26
|
-
return {};
|
|
27
|
-
for (let i = 0; i < $o.length; i++) {
|
|
28
|
-
const error = _number($o[i]);
|
|
29
|
-
if (error)
|
|
30
|
-
return error;
|
|
31
|
-
}
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
function _undefined($o) {
|
|
35
|
-
return $o !== undefined ? {} : null;
|
|
36
|
-
}
|
|
37
|
-
function _false($o) {
|
|
38
|
-
return $o !== false ? {} : null;
|
|
39
|
-
}
|
|
40
|
-
function _true($o) {
|
|
41
|
-
return $o !== true ? {} : null;
|
|
42
|
-
}
|
|
43
|
-
function su__undefined__6__7_eu($o) {
|
|
44
|
-
const conditions = [_undefined, _false, _true];
|
|
45
|
-
for (const condition of conditions) {
|
|
46
|
-
const error = condition($o);
|
|
47
|
-
if (!error)
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
return {};
|
|
51
|
-
}
|
|
52
|
-
function _0($o) {
|
|
53
|
-
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
54
|
-
return {};
|
|
55
|
-
if ("manufacturerId" in $o && $o["manufacturerId"] !== undefined) {
|
|
56
|
-
const error = _number($o["manufacturerId"]);
|
|
57
|
-
if (error)
|
|
58
|
-
return error;
|
|
59
|
-
}
|
|
60
|
-
else
|
|
61
|
-
return {};
|
|
62
|
-
if ("firmwareId" in $o && $o["firmwareId"] !== undefined) {
|
|
63
|
-
const error = _number($o["firmwareId"]);
|
|
64
|
-
if (error)
|
|
65
|
-
return error;
|
|
66
|
-
}
|
|
67
|
-
if ("checksum" in $o && $o["checksum"] !== undefined) {
|
|
68
|
-
const error = _number($o["checksum"]);
|
|
69
|
-
if (error)
|
|
70
|
-
return error;
|
|
71
|
-
}
|
|
72
|
-
if ("firmwareUpgradable" in $o && $o["firmwareUpgradable"] !== undefined) {
|
|
73
|
-
const error = _boolean($o["firmwareUpgradable"]);
|
|
74
|
-
if (error)
|
|
75
|
-
return error;
|
|
76
|
-
}
|
|
77
|
-
else
|
|
78
|
-
return {};
|
|
79
|
-
if ("maxFragmentSize" in $o && $o["maxFragmentSize"] !== undefined) {
|
|
80
|
-
const error = _number($o["maxFragmentSize"]);
|
|
81
|
-
if (error)
|
|
82
|
-
return error;
|
|
83
|
-
}
|
|
84
|
-
if ("additionalFirmwareIDs" in $o && $o["additionalFirmwareIDs"] !== undefined) {
|
|
85
|
-
const error = sa__number_ea_3($o["additionalFirmwareIDs"]);
|
|
86
|
-
if (error)
|
|
87
|
-
return error;
|
|
88
|
-
}
|
|
89
|
-
if ("hardwareVersion" in $o && $o["hardwareVersion"] !== undefined) {
|
|
90
|
-
const error = _number($o["hardwareVersion"]);
|
|
91
|
-
if (error)
|
|
92
|
-
return error;
|
|
93
|
-
}
|
|
94
|
-
if ("continuesToFunction" in $o && $o["continuesToFunction"] !== undefined) {
|
|
95
|
-
const error = su__undefined__6__7_eu($o["continuesToFunction"]);
|
|
96
|
-
if (error)
|
|
97
|
-
return error;
|
|
98
|
-
}
|
|
99
|
-
if ("supportsActivation" in $o && $o["supportsActivation"] !== undefined) {
|
|
100
|
-
const error = su__undefined__6__7_eu($o["supportsActivation"]);
|
|
101
|
-
if (error)
|
|
102
|
-
return error;
|
|
103
|
-
}
|
|
104
|
-
if ("supportsResuming" in $o && $o["supportsResuming"] !== undefined) {
|
|
105
|
-
const error = su__undefined__6__7_eu($o["supportsResuming"]);
|
|
106
|
-
if (error)
|
|
107
|
-
return error;
|
|
108
|
-
}
|
|
109
|
-
if ("supportsNonSecureTransfer" in $o && $o["supportsNonSecureTransfer"] !== undefined) {
|
|
110
|
-
const error = su__undefined__6__7_eu($o["supportsNonSecureTransfer"]);
|
|
111
|
-
if (error)
|
|
112
|
-
return error;
|
|
113
|
-
}
|
|
114
|
-
return null;
|
|
115
|
-
}
|
|
116
|
-
return _0($o);
|
|
117
|
-
};
|
|
118
|
-
const __assertType__FirmwareUpdateMetaDataCCRequestGetOptions = $o => {
|
|
119
|
-
function _number($o) {
|
|
120
|
-
return typeof $o !== "number" ? {} : null;
|
|
121
|
-
}
|
|
122
|
-
function _2($o) {
|
|
123
|
-
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
124
|
-
return {};
|
|
125
|
-
if ("manufacturerId" in $o && $o["manufacturerId"] !== undefined) {
|
|
126
|
-
const error = _number($o["manufacturerId"]);
|
|
127
|
-
if (error)
|
|
128
|
-
return error;
|
|
129
|
-
}
|
|
130
|
-
else
|
|
131
|
-
return {};
|
|
132
|
-
if ("firmwareId" in $o && $o["firmwareId"] !== undefined) {
|
|
133
|
-
const error = _number($o["firmwareId"]);
|
|
134
|
-
if (error)
|
|
135
|
-
return error;
|
|
136
|
-
}
|
|
137
|
-
else
|
|
138
|
-
return {};
|
|
139
|
-
if ("checksum" in $o && $o["checksum"] !== undefined) {
|
|
140
|
-
const error = _number($o["checksum"]);
|
|
141
|
-
if (error)
|
|
142
|
-
return error;
|
|
143
|
-
}
|
|
144
|
-
else
|
|
145
|
-
return {};
|
|
146
|
-
return null;
|
|
147
|
-
}
|
|
148
|
-
function _boolean($o) {
|
|
149
|
-
return typeof $o !== "boolean" ? {} : null;
|
|
150
|
-
}
|
|
151
|
-
function _3($o) {
|
|
152
|
-
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
153
|
-
return {};
|
|
154
|
-
if ("firmwareTarget" in $o && $o["firmwareTarget"] !== undefined) {
|
|
155
|
-
const error = _number($o["firmwareTarget"]);
|
|
156
|
-
if (error)
|
|
157
|
-
return error;
|
|
158
|
-
}
|
|
159
|
-
else
|
|
160
|
-
return {};
|
|
161
|
-
if ("fragmentSize" in $o && $o["fragmentSize"] !== undefined) {
|
|
162
|
-
const error = _number($o["fragmentSize"]);
|
|
163
|
-
if (error)
|
|
164
|
-
return error;
|
|
165
|
-
}
|
|
166
|
-
else
|
|
167
|
-
return {};
|
|
168
|
-
if ("activation" in $o && $o["activation"] !== undefined) {
|
|
169
|
-
const error = _boolean($o["activation"]);
|
|
170
|
-
if (error)
|
|
171
|
-
return error;
|
|
172
|
-
}
|
|
173
|
-
if ("hardwareVersion" in $o && $o["hardwareVersion"] !== undefined) {
|
|
174
|
-
const error = _number($o["hardwareVersion"]);
|
|
175
|
-
if (error)
|
|
176
|
-
return error;
|
|
177
|
-
}
|
|
178
|
-
if ("resume" in $o && $o["resume"] !== undefined) {
|
|
179
|
-
const error = _boolean($o["resume"]);
|
|
180
|
-
if (error)
|
|
181
|
-
return error;
|
|
182
|
-
}
|
|
183
|
-
if ("nonSecureTransfer" in $o && $o["nonSecureTransfer"] !== undefined) {
|
|
184
|
-
const error = _boolean($o["nonSecureTransfer"]);
|
|
185
|
-
if (error)
|
|
186
|
-
return error;
|
|
187
|
-
}
|
|
188
|
-
return null;
|
|
189
|
-
}
|
|
190
|
-
function si__2__3_ei($o) {
|
|
191
|
-
const conditions = [_2, _3];
|
|
192
|
-
for (const condition of conditions) {
|
|
193
|
-
const error = condition($o);
|
|
194
|
-
if (error)
|
|
195
|
-
return error;
|
|
196
|
-
}
|
|
197
|
-
return null;
|
|
198
|
-
}
|
|
199
|
-
function _undefined($o) {
|
|
200
|
-
return $o !== undefined ? {} : null;
|
|
201
|
-
}
|
|
202
|
-
function _5($o) {
|
|
203
|
-
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
204
|
-
return {};
|
|
205
|
-
if ("firmwareTarget" in $o && $o["firmwareTarget"] !== undefined) {
|
|
206
|
-
const error = _undefined($o["firmwareTarget"]);
|
|
207
|
-
if (error)
|
|
208
|
-
return error;
|
|
209
|
-
}
|
|
210
|
-
if ("fragmentSize" in $o && $o["fragmentSize"] !== undefined) {
|
|
211
|
-
const error = _undefined($o["fragmentSize"]);
|
|
212
|
-
if (error)
|
|
213
|
-
return error;
|
|
214
|
-
}
|
|
215
|
-
if ("activation" in $o && $o["activation"] !== undefined) {
|
|
216
|
-
const error = _undefined($o["activation"]);
|
|
217
|
-
if (error)
|
|
218
|
-
return error;
|
|
219
|
-
}
|
|
220
|
-
if ("hardwareVersion" in $o && $o["hardwareVersion"] !== undefined) {
|
|
221
|
-
const error = _undefined($o["hardwareVersion"]);
|
|
222
|
-
if (error)
|
|
223
|
-
return error;
|
|
224
|
-
}
|
|
225
|
-
if ("resume" in $o && $o["resume"] !== undefined) {
|
|
226
|
-
const error = _undefined($o["resume"]);
|
|
227
|
-
if (error)
|
|
228
|
-
return error;
|
|
229
|
-
}
|
|
230
|
-
if ("nonSecureTransfer" in $o && $o["nonSecureTransfer"] !== undefined) {
|
|
231
|
-
const error = _undefined($o["nonSecureTransfer"]);
|
|
232
|
-
if (error)
|
|
233
|
-
return error;
|
|
234
|
-
}
|
|
235
|
-
return null;
|
|
236
|
-
}
|
|
237
|
-
function si__2__5_ei($o) {
|
|
238
|
-
const conditions = [_2, _5];
|
|
239
|
-
for (const condition of conditions) {
|
|
240
|
-
const error = condition($o);
|
|
241
|
-
if (error)
|
|
242
|
-
return error;
|
|
243
|
-
}
|
|
244
|
-
return null;
|
|
245
|
-
}
|
|
246
|
-
function su_si__2__3_ei_si__2__5_ei_eu($o) {
|
|
247
|
-
const conditions = [si__2__3_ei, si__2__5_ei];
|
|
248
|
-
for (const condition of conditions) {
|
|
249
|
-
const error = condition($o);
|
|
250
|
-
if (!error)
|
|
251
|
-
return null;
|
|
252
|
-
}
|
|
253
|
-
return {};
|
|
254
|
-
}
|
|
255
|
-
return su_si__2__3_ei_si__2__5_ei_eu($o);
|
|
256
|
-
};
|
|
257
|
-
const __assertType__number = $o => {
|
|
258
|
-
function _number($o) {
|
|
259
|
-
return typeof $o !== "number" ? {} : null;
|
|
260
|
-
}
|
|
261
|
-
return _number($o);
|
|
262
|
-
};
|
|
263
|
-
const __assertType__boolean = $o => {
|
|
264
|
-
function _boolean($o) {
|
|
265
|
-
return typeof $o !== "boolean" ? {} : null;
|
|
266
|
-
}
|
|
267
|
-
return _boolean($o);
|
|
268
|
-
};
|
|
269
|
-
const __assertType__Uint8Array = $o => {
|
|
270
|
-
function _uint8array($o) {
|
|
271
|
-
return !require("@zwave-js/shared/safe").isUint8Array($o) ? {} : null;
|
|
272
|
-
}
|
|
273
|
-
return _uint8array($o);
|
|
274
|
-
};
|
|
275
|
-
const __assertType__FirmwareUpdateMetaDataCCActivationSetOptions = $o => {
|
|
276
|
-
function _number($o) {
|
|
277
|
-
return typeof $o !== "number" ? {} : null;
|
|
278
|
-
}
|
|
279
|
-
function _0($o) {
|
|
280
|
-
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
281
|
-
return {};
|
|
282
|
-
if ("manufacturerId" in $o && $o["manufacturerId"] !== undefined) {
|
|
283
|
-
const error = _number($o["manufacturerId"]);
|
|
284
|
-
if (error)
|
|
285
|
-
return error;
|
|
286
|
-
}
|
|
287
|
-
else
|
|
288
|
-
return {};
|
|
289
|
-
if ("firmwareId" in $o && $o["firmwareId"] !== undefined) {
|
|
290
|
-
const error = _number($o["firmwareId"]);
|
|
291
|
-
if (error)
|
|
292
|
-
return error;
|
|
293
|
-
}
|
|
294
|
-
else
|
|
295
|
-
return {};
|
|
296
|
-
if ("checksum" in $o && $o["checksum"] !== undefined) {
|
|
297
|
-
const error = _number($o["checksum"]);
|
|
298
|
-
if (error)
|
|
299
|
-
return error;
|
|
300
|
-
}
|
|
301
|
-
else
|
|
302
|
-
return {};
|
|
303
|
-
if ("firmwareTarget" in $o && $o["firmwareTarget"] !== undefined) {
|
|
304
|
-
const error = _number($o["firmwareTarget"]);
|
|
305
|
-
if (error)
|
|
306
|
-
return error;
|
|
307
|
-
}
|
|
308
|
-
else
|
|
309
|
-
return {};
|
|
310
|
-
if ("hardwareVersion" in $o && $o["hardwareVersion"] !== undefined) {
|
|
311
|
-
const error = _number($o["hardwareVersion"]);
|
|
312
|
-
if (error)
|
|
313
|
-
return error;
|
|
314
|
-
}
|
|
315
|
-
return null;
|
|
316
|
-
}
|
|
317
|
-
return _0($o);
|
|
318
|
-
};
|
|
319
|
-
const safe_1 = require("@zwave-js/core/safe");
|
|
320
|
-
const safe_2 = require("@zwave-js/shared/safe");
|
|
321
|
-
const safe_3 = require("@zwave-js/shared/safe");
|
|
322
|
-
const API_1 = require("../lib/API");
|
|
323
|
-
const CommandClass_1 = require("../lib/CommandClass");
|
|
324
|
-
const CommandClassDecorators_1 = require("../lib/CommandClassDecorators");
|
|
325
|
-
const Values_1 = require("../lib/Values");
|
|
326
|
-
const _Types_1 = require("../lib/_Types");
|
|
327
|
-
// @noSetValueAPI There are no values to set here
|
|
328
|
-
exports.FirmwareUpdateMetaDataCCValues = Object.freeze({
|
|
329
|
-
...Values_1.V.defineStaticCCValues(safe_1.CommandClasses["Firmware Update Meta Data"], {
|
|
330
|
-
...Values_1.V.staticProperty("supportsActivation", undefined, {
|
|
331
|
-
internal: true,
|
|
332
|
-
}),
|
|
333
|
-
...Values_1.V.staticProperty("firmwareUpgradable", undefined, {
|
|
334
|
-
internal: true,
|
|
335
|
-
}),
|
|
336
|
-
...Values_1.V.staticProperty("additionalFirmwareIDs", undefined, {
|
|
337
|
-
internal: true,
|
|
338
|
-
}),
|
|
339
|
-
...Values_1.V.staticProperty("continuesToFunction", undefined, {
|
|
340
|
-
internal: true,
|
|
341
|
-
}),
|
|
342
|
-
...Values_1.V.staticProperty("supportsResuming", undefined, {
|
|
343
|
-
internal: true,
|
|
344
|
-
}),
|
|
345
|
-
...Values_1.V.staticProperty("supportsNonSecureTransfer", undefined, {
|
|
346
|
-
internal: true,
|
|
347
|
-
}),
|
|
348
|
-
}),
|
|
349
|
-
});
|
|
350
|
-
let FirmwareUpdateMetaDataCCAPI = class FirmwareUpdateMetaDataCCAPI extends API_1.PhysicalCCAPI {
|
|
351
|
-
supportsCommand(cmd) {
|
|
352
|
-
switch (cmd) {
|
|
353
|
-
case _Types_1.FirmwareUpdateMetaDataCommand.MetaDataGet:
|
|
354
|
-
case _Types_1.FirmwareUpdateMetaDataCommand.MetaDataReport:
|
|
355
|
-
case _Types_1.FirmwareUpdateMetaDataCommand.RequestGet:
|
|
356
|
-
case _Types_1.FirmwareUpdateMetaDataCommand.Report:
|
|
357
|
-
case _Types_1.FirmwareUpdateMetaDataCommand.StatusReport:
|
|
358
|
-
return true;
|
|
359
|
-
case _Types_1.FirmwareUpdateMetaDataCommand.ActivationSet:
|
|
360
|
-
return (this.version >= 4
|
|
361
|
-
&& (this.version < 7
|
|
362
|
-
|| this.tryGetValueDB()?.getValue(exports.FirmwareUpdateMetaDataCCValues
|
|
363
|
-
.supportsActivation.endpoint(this.endpoint.index)) === true));
|
|
364
|
-
case _Types_1.FirmwareUpdateMetaDataCommand.PrepareGet:
|
|
365
|
-
return this.version >= 5;
|
|
366
|
-
}
|
|
367
|
-
return super.supportsCommand(cmd);
|
|
368
|
-
}
|
|
369
|
-
/**
|
|
370
|
-
* Requests information about the current firmware on the device
|
|
371
|
-
*/
|
|
372
|
-
async getMetaData() {
|
|
373
|
-
this.assertSupportsCommand(_Types_1.FirmwareUpdateMetaDataCommand, _Types_1.FirmwareUpdateMetaDataCommand.MetaDataGet);
|
|
374
|
-
const cc = new FirmwareUpdateMetaDataCCMetaDataGet({
|
|
375
|
-
nodeId: this.endpoint.nodeId,
|
|
376
|
-
endpointIndex: this.endpoint.index,
|
|
377
|
-
});
|
|
378
|
-
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
379
|
-
if (response) {
|
|
380
|
-
return (0, safe_3.pick)(response, [
|
|
381
|
-
"manufacturerId",
|
|
382
|
-
"firmwareId",
|
|
383
|
-
"checksum",
|
|
384
|
-
"firmwareUpgradable",
|
|
385
|
-
"maxFragmentSize",
|
|
386
|
-
"additionalFirmwareIDs",
|
|
387
|
-
"hardwareVersion",
|
|
388
|
-
"continuesToFunction",
|
|
389
|
-
"supportsActivation",
|
|
390
|
-
"supportsResuming",
|
|
391
|
-
"supportsNonSecureTransfer",
|
|
392
|
-
]);
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
async reportMetaData(options) {
|
|
396
|
-
__assertType("options", "FirmwareUpdateMetaDataCCMetaDataReportOptions", __assertType__FirmwareUpdateMetaDataCCMetaDataReportOptions.bind(void 0, options));
|
|
397
|
-
this.assertSupportsCommand(_Types_1.FirmwareUpdateMetaDataCommand, _Types_1.FirmwareUpdateMetaDataCommand.Report);
|
|
398
|
-
const cc = new FirmwareUpdateMetaDataCCMetaDataReport({
|
|
399
|
-
nodeId: this.endpoint.nodeId,
|
|
400
|
-
endpointIndex: this.endpoint.index,
|
|
401
|
-
...options,
|
|
402
|
-
});
|
|
403
|
-
await this.host.sendCommand(cc, this.commandOptions);
|
|
404
|
-
}
|
|
405
|
-
/**
|
|
406
|
-
* Requests the device to start the firmware update process.
|
|
407
|
-
* This does not wait for the reply - that is up to the caller of this method.
|
|
408
|
-
*/
|
|
409
|
-
async requestUpdate(options) {
|
|
410
|
-
__assertType("options", "FirmwareUpdateMetaDataCCRequestGetOptions", __assertType__FirmwareUpdateMetaDataCCRequestGetOptions.bind(void 0, options));
|
|
411
|
-
this.assertSupportsCommand(_Types_1.FirmwareUpdateMetaDataCommand, _Types_1.FirmwareUpdateMetaDataCommand.RequestGet);
|
|
412
|
-
const cc = new FirmwareUpdateMetaDataCCRequestGet({
|
|
413
|
-
nodeId: this.endpoint.nodeId,
|
|
414
|
-
endpointIndex: this.endpoint.index,
|
|
415
|
-
...options,
|
|
416
|
-
});
|
|
417
|
-
await this.host.sendCommand(cc, {
|
|
418
|
-
...this.commandOptions,
|
|
419
|
-
// Do not wait for Nonce Reports
|
|
420
|
-
s2VerifyDelivery: false,
|
|
421
|
-
});
|
|
422
|
-
}
|
|
423
|
-
/**
|
|
424
|
-
* Sends a fragment of the new firmware to the device
|
|
425
|
-
*/
|
|
426
|
-
async sendFirmwareFragment(fragmentNumber, isLastFragment, data) {
|
|
427
|
-
__assertType("fragmentNumber", "number", __assertType__number.bind(void 0, fragmentNumber));
|
|
428
|
-
__assertType("isLastFragment", "boolean", __assertType__boolean.bind(void 0, isLastFragment));
|
|
429
|
-
__assertType("data", "Uint8Array", __assertType__Uint8Array.bind(void 0, data));
|
|
430
|
-
this.assertSupportsCommand(_Types_1.FirmwareUpdateMetaDataCommand, _Types_1.FirmwareUpdateMetaDataCommand.Report);
|
|
431
|
-
const cc = new FirmwareUpdateMetaDataCCReport({
|
|
432
|
-
nodeId: this.endpoint.nodeId,
|
|
433
|
-
endpointIndex: this.endpoint.index,
|
|
434
|
-
reportNumber: fragmentNumber,
|
|
435
|
-
isLast: isLastFragment,
|
|
436
|
-
firmwareData: data,
|
|
437
|
-
});
|
|
438
|
-
await this.host.sendCommand(cc, {
|
|
439
|
-
...this.commandOptions,
|
|
440
|
-
// Do not wait for Nonce Reports
|
|
441
|
-
s2VerifyDelivery: false,
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
/** Activates a previously transferred firmware image */
|
|
445
|
-
async activateFirmware(options) {
|
|
446
|
-
__assertType("options", "FirmwareUpdateMetaDataCCActivationSetOptions", __assertType__FirmwareUpdateMetaDataCCActivationSetOptions.bind(void 0, options));
|
|
447
|
-
this.assertSupportsCommand(_Types_1.FirmwareUpdateMetaDataCommand, _Types_1.FirmwareUpdateMetaDataCommand.ActivationSet);
|
|
448
|
-
const cc = new FirmwareUpdateMetaDataCCActivationSet({
|
|
449
|
-
nodeId: this.endpoint.nodeId,
|
|
450
|
-
endpointIndex: this.endpoint.index,
|
|
451
|
-
...options,
|
|
452
|
-
});
|
|
453
|
-
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
454
|
-
return response?.activationStatus;
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
|
-
exports.FirmwareUpdateMetaDataCCAPI = FirmwareUpdateMetaDataCCAPI;
|
|
458
|
-
exports.FirmwareUpdateMetaDataCCAPI = FirmwareUpdateMetaDataCCAPI = __decorate([
|
|
459
|
-
(0, CommandClassDecorators_1.API)(safe_1.CommandClasses["Firmware Update Meta Data"])
|
|
460
|
-
], FirmwareUpdateMetaDataCCAPI);
|
|
461
|
-
let FirmwareUpdateMetaDataCC = class FirmwareUpdateMetaDataCC extends CommandClass_1.CommandClass {
|
|
462
|
-
skipEndpointInterview() {
|
|
463
|
-
return true;
|
|
464
|
-
}
|
|
465
|
-
async interview(ctx) {
|
|
466
|
-
const node = this.getNode(ctx);
|
|
467
|
-
const endpoint = this.getEndpoint(ctx);
|
|
468
|
-
const api = API_1.CCAPI.create(safe_1.CommandClasses["Firmware Update Meta Data"], ctx, endpoint).withOptions({
|
|
469
|
-
priority: safe_1.MessagePriority.NodeQuery,
|
|
470
|
-
});
|
|
471
|
-
ctx.logNode(node.id, {
|
|
472
|
-
endpoint: this.endpointIndex,
|
|
473
|
-
message: `Interviewing ${this.ccName}...`,
|
|
474
|
-
direction: "none",
|
|
475
|
-
});
|
|
476
|
-
ctx.logNode(node.id, {
|
|
477
|
-
endpoint: this.endpointIndex,
|
|
478
|
-
message: "Querying firmware update capabilities...",
|
|
479
|
-
direction: "outbound",
|
|
480
|
-
});
|
|
481
|
-
const caps = await api.getMetaData();
|
|
482
|
-
if (caps) {
|
|
483
|
-
let logMessage = `Received firmware update capabilities:`;
|
|
484
|
-
if (caps.firmwareUpgradable) {
|
|
485
|
-
logMessage += `
|
|
486
|
-
firmware targets: ${[0, ...caps.additionalFirmwareIDs].join(", ")}
|
|
487
|
-
continues to function: ${caps.continuesToFunction}
|
|
488
|
-
supports activation: ${caps.supportsActivation}`;
|
|
489
|
-
if (caps.supportsResuming != undefined) {
|
|
490
|
-
logMessage += `
|
|
491
|
-
supports resuming: ${caps.supportsResuming}`;
|
|
492
|
-
}
|
|
493
|
-
if (caps.supportsNonSecureTransfer != undefined) {
|
|
494
|
-
logMessage += `
|
|
495
|
-
supports non-secure transfer: ${caps.supportsNonSecureTransfer}`;
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
else {
|
|
499
|
-
logMessage += `\nfirmware upgradeable: false`;
|
|
500
|
-
}
|
|
501
|
-
ctx.logNode(node.id, {
|
|
502
|
-
endpoint: this.endpointIndex,
|
|
503
|
-
message: logMessage,
|
|
504
|
-
direction: "inbound",
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
else {
|
|
508
|
-
ctx.logNode(node.id, {
|
|
509
|
-
endpoint: this.endpointIndex,
|
|
510
|
-
message: "Firmware update capability query timed out",
|
|
511
|
-
direction: "inbound",
|
|
512
|
-
});
|
|
513
|
-
}
|
|
514
|
-
// Remember that the interview is complete
|
|
515
|
-
this.setInterviewComplete(ctx, true);
|
|
516
|
-
}
|
|
517
|
-
};
|
|
518
|
-
exports.FirmwareUpdateMetaDataCC = FirmwareUpdateMetaDataCC;
|
|
519
|
-
exports.FirmwareUpdateMetaDataCC = FirmwareUpdateMetaDataCC = __decorate([
|
|
520
|
-
(0, CommandClassDecorators_1.commandClass)(safe_1.CommandClasses["Firmware Update Meta Data"]),
|
|
521
|
-
(0, CommandClassDecorators_1.implementedVersion)(8),
|
|
522
|
-
(0, CommandClassDecorators_1.ccValues)(exports.FirmwareUpdateMetaDataCCValues)
|
|
523
|
-
], FirmwareUpdateMetaDataCC);
|
|
524
|
-
let FirmwareUpdateMetaDataCCMetaDataReport = FirmwareUpdateMetaDataCCMetaDataReport_1 = class FirmwareUpdateMetaDataCCMetaDataReport extends FirmwareUpdateMetaDataCC {
|
|
525
|
-
constructor(options) {
|
|
526
|
-
super(options);
|
|
527
|
-
this.manufacturerId = options.manufacturerId;
|
|
528
|
-
this.firmwareId = options.firmwareId ?? 0;
|
|
529
|
-
this.checksum = options.checksum ?? 0;
|
|
530
|
-
this.firmwareUpgradable = options.firmwareUpgradable;
|
|
531
|
-
this.maxFragmentSize = options.maxFragmentSize;
|
|
532
|
-
this.additionalFirmwareIDs = options.additionalFirmwareIDs ?? [];
|
|
533
|
-
this.hardwareVersion = options.hardwareVersion;
|
|
534
|
-
this.continuesToFunction = options.continuesToFunction;
|
|
535
|
-
this.supportsActivation = options.supportsActivation;
|
|
536
|
-
this.supportsResuming = options.supportsResuming;
|
|
537
|
-
this.supportsNonSecureTransfer = options.supportsNonSecureTransfer;
|
|
538
|
-
}
|
|
539
|
-
static from(raw, ctx) {
|
|
540
|
-
(0, safe_1.validatePayload)(raw.payload.length >= 6);
|
|
541
|
-
const manufacturerId = raw.payload.readUInt16BE(0);
|
|
542
|
-
const firmwareId = raw.payload.readUInt16BE(2);
|
|
543
|
-
const checksum = raw.payload.readUInt16BE(4);
|
|
544
|
-
// V1/V2 only have a single firmware which must be upgradable
|
|
545
|
-
const firmwareUpgradable = raw.payload[6] === 0xff
|
|
546
|
-
|| raw.payload[6] == undefined;
|
|
547
|
-
let maxFragmentSize;
|
|
548
|
-
let additionalFirmwareIDs;
|
|
549
|
-
let hardwareVersion;
|
|
550
|
-
let continuesToFunction;
|
|
551
|
-
let supportsActivation;
|
|
552
|
-
let supportsResuming;
|
|
553
|
-
let supportsNonSecureTransfer;
|
|
554
|
-
if (raw.payload.length >= 10) {
|
|
555
|
-
// V3+
|
|
556
|
-
maxFragmentSize = raw.payload.readUInt16BE(8);
|
|
557
|
-
// Read variable length list of additional firmwares
|
|
558
|
-
const numAdditionalFirmwares = raw.payload[7];
|
|
559
|
-
additionalFirmwareIDs = [];
|
|
560
|
-
(0, safe_1.validatePayload)(raw.payload.length >= 10 + 2 * numAdditionalFirmwares);
|
|
561
|
-
for (let i = 0; i < numAdditionalFirmwares; i++) {
|
|
562
|
-
additionalFirmwareIDs.push(raw.payload.readUInt16BE(10 + 2 * i));
|
|
563
|
-
}
|
|
564
|
-
// Read hardware version (if it exists)
|
|
565
|
-
let offset = 10 + 2 * numAdditionalFirmwares;
|
|
566
|
-
if (raw.payload.length >= offset + 1) {
|
|
567
|
-
// V5+
|
|
568
|
-
hardwareVersion = raw.payload[offset];
|
|
569
|
-
offset++;
|
|
570
|
-
if (raw.payload.length >= offset + 1) {
|
|
571
|
-
// V6+
|
|
572
|
-
const capabilities = raw.payload[offset];
|
|
573
|
-
offset++;
|
|
574
|
-
continuesToFunction = !!(capabilities & 0b1);
|
|
575
|
-
// V7+
|
|
576
|
-
supportsActivation = !!(capabilities & 0b10);
|
|
577
|
-
// V8+
|
|
578
|
-
supportsResuming = !!(capabilities & 0b1000);
|
|
579
|
-
supportsNonSecureTransfer = !!(capabilities & 0b100);
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
return new FirmwareUpdateMetaDataCCMetaDataReport_1({
|
|
584
|
-
nodeId: ctx.sourceNodeId,
|
|
585
|
-
manufacturerId,
|
|
586
|
-
firmwareId,
|
|
587
|
-
checksum,
|
|
588
|
-
firmwareUpgradable,
|
|
589
|
-
maxFragmentSize,
|
|
590
|
-
additionalFirmwareIDs,
|
|
591
|
-
hardwareVersion,
|
|
592
|
-
continuesToFunction,
|
|
593
|
-
supportsActivation,
|
|
594
|
-
supportsResuming,
|
|
595
|
-
supportsNonSecureTransfer,
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
manufacturerId;
|
|
599
|
-
firmwareId;
|
|
600
|
-
checksum;
|
|
601
|
-
firmwareUpgradable;
|
|
602
|
-
maxFragmentSize;
|
|
603
|
-
additionalFirmwareIDs = [];
|
|
604
|
-
hardwareVersion;
|
|
605
|
-
continuesToFunction;
|
|
606
|
-
supportsActivation;
|
|
607
|
-
supportsResuming;
|
|
608
|
-
supportsNonSecureTransfer;
|
|
609
|
-
serialize(ctx) {
|
|
610
|
-
this.payload = safe_2.Bytes.alloc(12 + 2 * this.additionalFirmwareIDs.length);
|
|
611
|
-
this.payload.writeUInt16BE(this.manufacturerId, 0);
|
|
612
|
-
this.payload.writeUInt16BE(this.firmwareId, 2);
|
|
613
|
-
this.payload.writeUInt16BE(this.checksum, 4);
|
|
614
|
-
this.payload[6] = this.firmwareUpgradable ? 0xff : 0;
|
|
615
|
-
this.payload[7] = this.additionalFirmwareIDs.length;
|
|
616
|
-
this.payload.writeUInt16BE(this.maxFragmentSize ?? 0xff, 8);
|
|
617
|
-
let offset = 10;
|
|
618
|
-
for (const id of this.additionalFirmwareIDs) {
|
|
619
|
-
this.payload.writeUInt16BE(id, offset);
|
|
620
|
-
offset += 2;
|
|
621
|
-
}
|
|
622
|
-
this.payload[offset++] = this.hardwareVersion ?? 0xff;
|
|
623
|
-
this.payload[offset++] = (this.continuesToFunction ? 0b1 : 0)
|
|
624
|
-
| (this.supportsActivation ? 0b10 : 0)
|
|
625
|
-
| (this.supportsNonSecureTransfer ? 0b100 : 0)
|
|
626
|
-
| (this.supportsResuming ? 0b1000 : 0);
|
|
627
|
-
return super.serialize(ctx);
|
|
628
|
-
}
|
|
629
|
-
toLogEntry(ctx) {
|
|
630
|
-
const message = {
|
|
631
|
-
"manufacturer id": this.manufacturerId,
|
|
632
|
-
"firmware id": this.firmwareId,
|
|
633
|
-
checksum: this.checksum,
|
|
634
|
-
"firmware upgradable": this.firmwareUpgradable,
|
|
635
|
-
};
|
|
636
|
-
if (this.maxFragmentSize != undefined) {
|
|
637
|
-
message["max fragment size"] = this.maxFragmentSize;
|
|
638
|
-
}
|
|
639
|
-
if (this.additionalFirmwareIDs.length) {
|
|
640
|
-
message["additional firmware IDs"] = JSON.stringify(this.additionalFirmwareIDs);
|
|
641
|
-
}
|
|
642
|
-
if (this.hardwareVersion != undefined) {
|
|
643
|
-
message["hardware version"] = this.hardwareVersion;
|
|
644
|
-
}
|
|
645
|
-
if (this.continuesToFunction != undefined) {
|
|
646
|
-
message["continues to function"] = this.continuesToFunction;
|
|
647
|
-
}
|
|
648
|
-
if (this.supportsActivation != undefined) {
|
|
649
|
-
message["supports activation"] = this.supportsActivation;
|
|
650
|
-
}
|
|
651
|
-
if (this.supportsResuming != undefined) {
|
|
652
|
-
message["supports resuming"] = this.supportsResuming;
|
|
653
|
-
}
|
|
654
|
-
if (this.supportsNonSecureTransfer != undefined) {
|
|
655
|
-
message["supports non-secure transfer"] =
|
|
656
|
-
this.supportsNonSecureTransfer;
|
|
657
|
-
}
|
|
658
|
-
return {
|
|
659
|
-
...super.toLogEntry(ctx),
|
|
660
|
-
message,
|
|
661
|
-
};
|
|
662
|
-
}
|
|
663
|
-
};
|
|
664
|
-
exports.FirmwareUpdateMetaDataCCMetaDataReport = FirmwareUpdateMetaDataCCMetaDataReport;
|
|
665
|
-
__decorate([
|
|
666
|
-
(0, CommandClassDecorators_1.ccValue)(exports.FirmwareUpdateMetaDataCCValues.firmwareUpgradable)
|
|
667
|
-
], FirmwareUpdateMetaDataCCMetaDataReport.prototype, "firmwareUpgradable", void 0);
|
|
668
|
-
__decorate([
|
|
669
|
-
(0, CommandClassDecorators_1.ccValue)(exports.FirmwareUpdateMetaDataCCValues.additionalFirmwareIDs)
|
|
670
|
-
], FirmwareUpdateMetaDataCCMetaDataReport.prototype, "additionalFirmwareIDs", void 0);
|
|
671
|
-
__decorate([
|
|
672
|
-
(0, CommandClassDecorators_1.ccValue)(exports.FirmwareUpdateMetaDataCCValues.continuesToFunction)
|
|
673
|
-
], FirmwareUpdateMetaDataCCMetaDataReport.prototype, "continuesToFunction", void 0);
|
|
674
|
-
__decorate([
|
|
675
|
-
(0, CommandClassDecorators_1.ccValue)(exports.FirmwareUpdateMetaDataCCValues.supportsActivation)
|
|
676
|
-
], FirmwareUpdateMetaDataCCMetaDataReport.prototype, "supportsActivation", void 0);
|
|
677
|
-
__decorate([
|
|
678
|
-
(0, CommandClassDecorators_1.ccValue)(exports.FirmwareUpdateMetaDataCCValues.supportsResuming)
|
|
679
|
-
], FirmwareUpdateMetaDataCCMetaDataReport.prototype, "supportsResuming", void 0);
|
|
680
|
-
__decorate([
|
|
681
|
-
(0, CommandClassDecorators_1.ccValue)(exports.FirmwareUpdateMetaDataCCValues.supportsNonSecureTransfer)
|
|
682
|
-
], FirmwareUpdateMetaDataCCMetaDataReport.prototype, "supportsNonSecureTransfer", void 0);
|
|
683
|
-
exports.FirmwareUpdateMetaDataCCMetaDataReport = FirmwareUpdateMetaDataCCMetaDataReport = FirmwareUpdateMetaDataCCMetaDataReport_1 = __decorate([
|
|
684
|
-
(0, CommandClassDecorators_1.CCCommand)(_Types_1.FirmwareUpdateMetaDataCommand.MetaDataReport)
|
|
685
|
-
], FirmwareUpdateMetaDataCCMetaDataReport);
|
|
686
|
-
let FirmwareUpdateMetaDataCCMetaDataGet = class FirmwareUpdateMetaDataCCMetaDataGet extends FirmwareUpdateMetaDataCC {
|
|
687
|
-
};
|
|
688
|
-
exports.FirmwareUpdateMetaDataCCMetaDataGet = FirmwareUpdateMetaDataCCMetaDataGet;
|
|
689
|
-
exports.FirmwareUpdateMetaDataCCMetaDataGet = FirmwareUpdateMetaDataCCMetaDataGet = __decorate([
|
|
690
|
-
(0, CommandClassDecorators_1.CCCommand)(_Types_1.FirmwareUpdateMetaDataCommand.MetaDataGet),
|
|
691
|
-
(0, CommandClassDecorators_1.expectedCCResponse)(FirmwareUpdateMetaDataCCMetaDataReport)
|
|
692
|
-
], FirmwareUpdateMetaDataCCMetaDataGet);
|
|
693
|
-
let FirmwareUpdateMetaDataCCRequestReport = FirmwareUpdateMetaDataCCRequestReport_1 = class FirmwareUpdateMetaDataCCRequestReport extends FirmwareUpdateMetaDataCC {
|
|
694
|
-
constructor(options) {
|
|
695
|
-
super(options);
|
|
696
|
-
// TODO: Check implementation:
|
|
697
|
-
this.status = options.status;
|
|
698
|
-
this.resume = options.resume;
|
|
699
|
-
this.nonSecureTransfer = options.nonSecureTransfer;
|
|
700
|
-
}
|
|
701
|
-
static from(raw, ctx) {
|
|
702
|
-
(0, safe_1.validatePayload)(raw.payload.length >= 1);
|
|
703
|
-
const status = raw.payload[0];
|
|
704
|
-
let resume;
|
|
705
|
-
let nonSecureTransfer;
|
|
706
|
-
if (raw.payload.length >= 2) {
|
|
707
|
-
resume = !!(raw.payload[1] & 0b100);
|
|
708
|
-
nonSecureTransfer = !!(raw.payload[1] & 0b10);
|
|
709
|
-
}
|
|
710
|
-
return new FirmwareUpdateMetaDataCCRequestReport_1({
|
|
711
|
-
nodeId: ctx.sourceNodeId,
|
|
712
|
-
status,
|
|
713
|
-
resume,
|
|
714
|
-
nonSecureTransfer,
|
|
715
|
-
});
|
|
716
|
-
}
|
|
717
|
-
status;
|
|
718
|
-
resume;
|
|
719
|
-
nonSecureTransfer;
|
|
720
|
-
toLogEntry(ctx) {
|
|
721
|
-
const message = {
|
|
722
|
-
status: (0, safe_3.getEnumMemberName)(_Types_1.FirmwareUpdateRequestStatus, this.status),
|
|
723
|
-
};
|
|
724
|
-
if (this.resume != undefined) {
|
|
725
|
-
message.resume = this.resume;
|
|
726
|
-
}
|
|
727
|
-
if (this.nonSecureTransfer != undefined) {
|
|
728
|
-
message["non-secure transfer"] = this.nonSecureTransfer;
|
|
729
|
-
}
|
|
730
|
-
return {
|
|
731
|
-
...super.toLogEntry(ctx),
|
|
732
|
-
message,
|
|
733
|
-
};
|
|
734
|
-
}
|
|
735
|
-
};
|
|
736
|
-
exports.FirmwareUpdateMetaDataCCRequestReport = FirmwareUpdateMetaDataCCRequestReport;
|
|
737
|
-
exports.FirmwareUpdateMetaDataCCRequestReport = FirmwareUpdateMetaDataCCRequestReport = FirmwareUpdateMetaDataCCRequestReport_1 = __decorate([
|
|
738
|
-
(0, CommandClassDecorators_1.CCCommand)(_Types_1.FirmwareUpdateMetaDataCommand.RequestReport)
|
|
739
|
-
], FirmwareUpdateMetaDataCCRequestReport);
|
|
740
|
-
let FirmwareUpdateMetaDataCCRequestGet = class FirmwareUpdateMetaDataCCRequestGet extends FirmwareUpdateMetaDataCC {
|
|
741
|
-
constructor(options) {
|
|
742
|
-
super(options);
|
|
743
|
-
this.manufacturerId = options.manufacturerId;
|
|
744
|
-
this.firmwareId = options.firmwareId;
|
|
745
|
-
this.checksum = options.checksum;
|
|
746
|
-
if ("firmwareTarget" in options) {
|
|
747
|
-
this.firmwareTarget = options.firmwareTarget;
|
|
748
|
-
this.fragmentSize = options.fragmentSize;
|
|
749
|
-
this.activation = options.activation ?? false;
|
|
750
|
-
this.hardwareVersion = options.hardwareVersion;
|
|
751
|
-
this.resume = options.resume;
|
|
752
|
-
this.nonSecureTransfer = options.nonSecureTransfer;
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
static from(_raw, _ctx) {
|
|
756
|
-
// TODO: Deserialize payload
|
|
757
|
-
throw new safe_1.ZWaveError(`${this.name}: deserialization not implemented`, safe_1.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
758
|
-
// return new FirmwareUpdateMetaDataCCRequestGet({
|
|
759
|
-
// nodeId: ctx.sourceNodeId,
|
|
760
|
-
// });
|
|
761
|
-
}
|
|
762
|
-
manufacturerId;
|
|
763
|
-
firmwareId;
|
|
764
|
-
checksum;
|
|
765
|
-
firmwareTarget;
|
|
766
|
-
fragmentSize;
|
|
767
|
-
activation;
|
|
768
|
-
hardwareVersion;
|
|
769
|
-
resume;
|
|
770
|
-
nonSecureTransfer;
|
|
771
|
-
serialize(ctx) {
|
|
772
|
-
this.payload = safe_2.Bytes.alloc(11, 0);
|
|
773
|
-
this.payload.writeUInt16BE(this.manufacturerId, 0);
|
|
774
|
-
this.payload.writeUInt16BE(this.firmwareId, 2);
|
|
775
|
-
this.payload.writeUInt16BE(this.checksum, 4);
|
|
776
|
-
this.payload[6] = this.firmwareTarget ?? 0;
|
|
777
|
-
// 32 seems like a reasonable default fragment size,
|
|
778
|
-
// but it should be specified anyways
|
|
779
|
-
this.payload.writeUInt16BE(this.fragmentSize ?? 32, 7);
|
|
780
|
-
this.payload[9] = (this.activation ? 0b1 : 0)
|
|
781
|
-
| (this.nonSecureTransfer ? 0b10 : 0)
|
|
782
|
-
| (this.resume ? 0b100 : 0);
|
|
783
|
-
this.payload[10] = this.hardwareVersion ?? 0x00;
|
|
784
|
-
return super.serialize(ctx);
|
|
785
|
-
}
|
|
786
|
-
toLogEntry(ctx) {
|
|
787
|
-
const message = {
|
|
788
|
-
"manufacturer id": (0, safe_3.num2hex)(this.manufacturerId),
|
|
789
|
-
"firmware id": (0, safe_3.num2hex)(this.firmwareId),
|
|
790
|
-
checksum: (0, safe_3.num2hex)(this.checksum),
|
|
791
|
-
};
|
|
792
|
-
if (this.firmwareTarget != undefined) {
|
|
793
|
-
message["firmware target"] = this.firmwareTarget;
|
|
794
|
-
}
|
|
795
|
-
if (this.fragmentSize != undefined) {
|
|
796
|
-
message["fragment size"] = this.fragmentSize;
|
|
797
|
-
}
|
|
798
|
-
if (this.activation != undefined) {
|
|
799
|
-
message.activation = this.activation;
|
|
800
|
-
}
|
|
801
|
-
if (this.resume != undefined) {
|
|
802
|
-
message.resume = this.resume;
|
|
803
|
-
}
|
|
804
|
-
if (this.nonSecureTransfer != undefined) {
|
|
805
|
-
message["non-secure transfer"] = this.nonSecureTransfer;
|
|
806
|
-
}
|
|
807
|
-
if (this.hardwareVersion != undefined) {
|
|
808
|
-
message["hardware version"] = this.hardwareVersion;
|
|
809
|
-
}
|
|
810
|
-
return {
|
|
811
|
-
...super.toLogEntry(ctx),
|
|
812
|
-
message,
|
|
813
|
-
};
|
|
814
|
-
}
|
|
815
|
-
};
|
|
816
|
-
exports.FirmwareUpdateMetaDataCCRequestGet = FirmwareUpdateMetaDataCCRequestGet;
|
|
817
|
-
exports.FirmwareUpdateMetaDataCCRequestGet = FirmwareUpdateMetaDataCCRequestGet = __decorate([
|
|
818
|
-
(0, CommandClassDecorators_1.CCCommand)(_Types_1.FirmwareUpdateMetaDataCommand.RequestGet)
|
|
819
|
-
// This would expect a FirmwareUpdateMetaDataCCRequestReport, but the response may take
|
|
820
|
-
// a while to come. We don't want to block communication, so we don't expect a response here
|
|
821
|
-
], FirmwareUpdateMetaDataCCRequestGet);
|
|
822
|
-
let FirmwareUpdateMetaDataCCGet = FirmwareUpdateMetaDataCCGet_1 = class FirmwareUpdateMetaDataCCGet extends FirmwareUpdateMetaDataCC {
|
|
823
|
-
constructor(options) {
|
|
824
|
-
super(options);
|
|
825
|
-
// TODO: Check implementation:
|
|
826
|
-
this.numReports = options.numReports;
|
|
827
|
-
this.reportNumber = options.reportNumber;
|
|
828
|
-
}
|
|
829
|
-
static from(raw, ctx) {
|
|
830
|
-
(0, safe_1.validatePayload)(raw.payload.length >= 3);
|
|
831
|
-
const numReports = raw.payload[0];
|
|
832
|
-
const reportNumber = raw.payload.readUInt16BE(1) & 0x7fff;
|
|
833
|
-
return new FirmwareUpdateMetaDataCCGet_1({
|
|
834
|
-
nodeId: ctx.sourceNodeId,
|
|
835
|
-
numReports,
|
|
836
|
-
reportNumber,
|
|
837
|
-
});
|
|
838
|
-
}
|
|
839
|
-
numReports;
|
|
840
|
-
reportNumber;
|
|
841
|
-
toLogEntry(ctx) {
|
|
842
|
-
return {
|
|
843
|
-
...super.toLogEntry(ctx),
|
|
844
|
-
message: {
|
|
845
|
-
"total # of reports": this.numReports,
|
|
846
|
-
"report number": this.reportNumber,
|
|
847
|
-
},
|
|
848
|
-
};
|
|
849
|
-
}
|
|
850
|
-
};
|
|
851
|
-
exports.FirmwareUpdateMetaDataCCGet = FirmwareUpdateMetaDataCCGet;
|
|
852
|
-
exports.FirmwareUpdateMetaDataCCGet = FirmwareUpdateMetaDataCCGet = FirmwareUpdateMetaDataCCGet_1 = __decorate([
|
|
853
|
-
(0, CommandClassDecorators_1.CCCommand)(_Types_1.FirmwareUpdateMetaDataCommand.Get)
|
|
854
|
-
// This is sent to us from the node, so we expect no response
|
|
855
|
-
], FirmwareUpdateMetaDataCCGet);
|
|
856
|
-
let FirmwareUpdateMetaDataCCReport = class FirmwareUpdateMetaDataCCReport extends FirmwareUpdateMetaDataCC {
|
|
857
|
-
constructor(options) {
|
|
858
|
-
super(options);
|
|
859
|
-
this.reportNumber = options.reportNumber;
|
|
860
|
-
this.firmwareData = options.firmwareData;
|
|
861
|
-
this.isLast = options.isLast;
|
|
862
|
-
}
|
|
863
|
-
static from(_raw, _ctx) {
|
|
864
|
-
// TODO: Deserialize payload
|
|
865
|
-
throw new safe_1.ZWaveError(`${this.name}: deserialization not implemented`, safe_1.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
866
|
-
// return new FirmwareUpdateMetaDataCCReport({
|
|
867
|
-
// nodeId: ctx.sourceNodeId,
|
|
868
|
-
// });
|
|
869
|
-
}
|
|
870
|
-
isLast;
|
|
871
|
-
reportNumber;
|
|
872
|
-
firmwareData;
|
|
873
|
-
serialize(ctx) {
|
|
874
|
-
const commandBuffer = safe_2.Bytes.concat([
|
|
875
|
-
new safe_2.Bytes(2), // placeholder for report number
|
|
876
|
-
this.firmwareData,
|
|
877
|
-
]);
|
|
878
|
-
commandBuffer.writeUInt16BE((this.reportNumber & 0x7fff) | (this.isLast ? 0x8000 : 0), 0);
|
|
879
|
-
// V1 devices would consider the checksum to be part of the firmware data
|
|
880
|
-
// so it must not be included for those
|
|
881
|
-
const ccVersion = (0, CommandClass_1.getEffectiveCCVersion)(ctx, this);
|
|
882
|
-
if (ccVersion >= 2) {
|
|
883
|
-
// Compute and save the CRC16 in the payload
|
|
884
|
-
// The CC header is included in the CRC computation
|
|
885
|
-
let crc = (0, safe_1.CRC16_CCITT)(safe_2.Bytes.from([this.ccId, this.ccCommand]));
|
|
886
|
-
crc = (0, safe_1.CRC16_CCITT)(commandBuffer, crc);
|
|
887
|
-
this.payload = safe_2.Bytes.concat([
|
|
888
|
-
commandBuffer,
|
|
889
|
-
new safe_2.Bytes(2),
|
|
890
|
-
]);
|
|
891
|
-
this.payload.writeUInt16BE(crc, this.payload.length - 2);
|
|
892
|
-
}
|
|
893
|
-
else {
|
|
894
|
-
this.payload = commandBuffer;
|
|
895
|
-
}
|
|
896
|
-
return super.serialize(ctx);
|
|
897
|
-
}
|
|
898
|
-
toLogEntry(ctx) {
|
|
899
|
-
return {
|
|
900
|
-
...super.toLogEntry(ctx),
|
|
901
|
-
message: {
|
|
902
|
-
"report #": this.reportNumber,
|
|
903
|
-
"is last": this.isLast,
|
|
904
|
-
},
|
|
905
|
-
};
|
|
906
|
-
}
|
|
907
|
-
};
|
|
908
|
-
exports.FirmwareUpdateMetaDataCCReport = FirmwareUpdateMetaDataCCReport;
|
|
909
|
-
exports.FirmwareUpdateMetaDataCCReport = FirmwareUpdateMetaDataCCReport = __decorate([
|
|
910
|
-
(0, CommandClassDecorators_1.CCCommand)(_Types_1.FirmwareUpdateMetaDataCommand.Report)
|
|
911
|
-
// We send this in reply to the Get command and expect no response
|
|
912
|
-
], FirmwareUpdateMetaDataCCReport);
|
|
913
|
-
let FirmwareUpdateMetaDataCCStatusReport = FirmwareUpdateMetaDataCCStatusReport_1 = class FirmwareUpdateMetaDataCCStatusReport extends FirmwareUpdateMetaDataCC {
|
|
914
|
-
constructor(options) {
|
|
915
|
-
super(options);
|
|
916
|
-
// TODO: Check implementation:
|
|
917
|
-
this.status = options.status;
|
|
918
|
-
this.waitTime = options.waitTime;
|
|
919
|
-
}
|
|
920
|
-
static from(raw, ctx) {
|
|
921
|
-
(0, safe_1.validatePayload)(raw.payload.length >= 1);
|
|
922
|
-
const status = raw.payload[0];
|
|
923
|
-
let waitTime;
|
|
924
|
-
if (raw.payload.length >= 3) {
|
|
925
|
-
waitTime = raw.payload.readUInt16BE(1);
|
|
926
|
-
}
|
|
927
|
-
return new FirmwareUpdateMetaDataCCStatusReport_1({
|
|
928
|
-
nodeId: ctx.sourceNodeId,
|
|
929
|
-
status,
|
|
930
|
-
waitTime,
|
|
931
|
-
});
|
|
932
|
-
}
|
|
933
|
-
status;
|
|
934
|
-
/** The wait time in seconds before the node becomes available for communication after the update */
|
|
935
|
-
waitTime;
|
|
936
|
-
toLogEntry(ctx) {
|
|
937
|
-
const message = {
|
|
938
|
-
status: (0, safe_3.getEnumMemberName)(_Types_1.FirmwareUpdateStatus, this.status),
|
|
939
|
-
};
|
|
940
|
-
if (this.waitTime != undefined) {
|
|
941
|
-
message["wait time"] = `${this.waitTime} seconds`;
|
|
942
|
-
}
|
|
943
|
-
return {
|
|
944
|
-
...super.toLogEntry(ctx),
|
|
945
|
-
message,
|
|
946
|
-
};
|
|
947
|
-
}
|
|
948
|
-
};
|
|
949
|
-
exports.FirmwareUpdateMetaDataCCStatusReport = FirmwareUpdateMetaDataCCStatusReport;
|
|
950
|
-
exports.FirmwareUpdateMetaDataCCStatusReport = FirmwareUpdateMetaDataCCStatusReport = FirmwareUpdateMetaDataCCStatusReport_1 = __decorate([
|
|
951
|
-
(0, CommandClassDecorators_1.CCCommand)(_Types_1.FirmwareUpdateMetaDataCommand.StatusReport)
|
|
952
|
-
], FirmwareUpdateMetaDataCCStatusReport);
|
|
953
|
-
let FirmwareUpdateMetaDataCCActivationReport = FirmwareUpdateMetaDataCCActivationReport_1 = class FirmwareUpdateMetaDataCCActivationReport extends FirmwareUpdateMetaDataCC {
|
|
954
|
-
constructor(options) {
|
|
955
|
-
super(options);
|
|
956
|
-
// TODO: Check implementation:
|
|
957
|
-
this.manufacturerId = options.manufacturerId;
|
|
958
|
-
this.firmwareId = options.firmwareId;
|
|
959
|
-
this.checksum = options.checksum;
|
|
960
|
-
this.firmwareTarget = options.firmwareTarget;
|
|
961
|
-
this.activationStatus = options.activationStatus;
|
|
962
|
-
this.hardwareVersion = options.hardwareVersion;
|
|
963
|
-
}
|
|
964
|
-
static from(raw, ctx) {
|
|
965
|
-
(0, safe_1.validatePayload)(raw.payload.length >= 8);
|
|
966
|
-
const manufacturerId = raw.payload.readUInt16BE(0);
|
|
967
|
-
const firmwareId = raw.payload.readUInt16BE(2);
|
|
968
|
-
const checksum = raw.payload.readUInt16BE(4);
|
|
969
|
-
const firmwareTarget = raw.payload[6];
|
|
970
|
-
const activationStatus = raw.payload[7];
|
|
971
|
-
let hardwareVersion;
|
|
972
|
-
if (raw.payload.length >= 9) {
|
|
973
|
-
// V5+
|
|
974
|
-
hardwareVersion = raw.payload[8];
|
|
975
|
-
}
|
|
976
|
-
return new FirmwareUpdateMetaDataCCActivationReport_1({
|
|
977
|
-
nodeId: ctx.sourceNodeId,
|
|
978
|
-
manufacturerId,
|
|
979
|
-
firmwareId,
|
|
980
|
-
checksum,
|
|
981
|
-
firmwareTarget,
|
|
982
|
-
activationStatus,
|
|
983
|
-
hardwareVersion,
|
|
984
|
-
});
|
|
985
|
-
}
|
|
986
|
-
manufacturerId;
|
|
987
|
-
firmwareId;
|
|
988
|
-
checksum;
|
|
989
|
-
firmwareTarget;
|
|
990
|
-
activationStatus;
|
|
991
|
-
hardwareVersion;
|
|
992
|
-
toLogEntry(ctx) {
|
|
993
|
-
const message = {
|
|
994
|
-
"manufacturer id": (0, safe_3.num2hex)(this.manufacturerId),
|
|
995
|
-
"firmware id": (0, safe_3.num2hex)(this.firmwareId),
|
|
996
|
-
checksum: (0, safe_3.num2hex)(this.checksum),
|
|
997
|
-
"firmware target": this.firmwareTarget,
|
|
998
|
-
"activation status": (0, safe_3.getEnumMemberName)(_Types_1.FirmwareUpdateActivationStatus, this.activationStatus),
|
|
999
|
-
};
|
|
1000
|
-
if (this.hardwareVersion != undefined) {
|
|
1001
|
-
message.hardwareVersion = this.hardwareVersion;
|
|
1002
|
-
}
|
|
1003
|
-
return {
|
|
1004
|
-
...super.toLogEntry(ctx),
|
|
1005
|
-
message,
|
|
1006
|
-
};
|
|
1007
|
-
}
|
|
1008
|
-
};
|
|
1009
|
-
exports.FirmwareUpdateMetaDataCCActivationReport = FirmwareUpdateMetaDataCCActivationReport;
|
|
1010
|
-
exports.FirmwareUpdateMetaDataCCActivationReport = FirmwareUpdateMetaDataCCActivationReport = FirmwareUpdateMetaDataCCActivationReport_1 = __decorate([
|
|
1011
|
-
(0, CommandClassDecorators_1.CCCommand)(_Types_1.FirmwareUpdateMetaDataCommand.ActivationReport)
|
|
1012
|
-
], FirmwareUpdateMetaDataCCActivationReport);
|
|
1013
|
-
let FirmwareUpdateMetaDataCCActivationSet = class FirmwareUpdateMetaDataCCActivationSet extends FirmwareUpdateMetaDataCC {
|
|
1014
|
-
constructor(options) {
|
|
1015
|
-
super(options);
|
|
1016
|
-
this.manufacturerId = options.manufacturerId;
|
|
1017
|
-
this.firmwareId = options.firmwareId;
|
|
1018
|
-
this.checksum = options.checksum;
|
|
1019
|
-
this.firmwareTarget = options.firmwareTarget;
|
|
1020
|
-
this.hardwareVersion = options.hardwareVersion;
|
|
1021
|
-
}
|
|
1022
|
-
static from(_raw, _ctx) {
|
|
1023
|
-
// TODO: Deserialize payload
|
|
1024
|
-
throw new safe_1.ZWaveError(`${this.name}: deserialization not implemented`, safe_1.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
1025
|
-
// return new FirmwareUpdateMetaDataCCActivationSet({
|
|
1026
|
-
// nodeId: ctx.sourceNodeId,
|
|
1027
|
-
// });
|
|
1028
|
-
}
|
|
1029
|
-
manufacturerId;
|
|
1030
|
-
firmwareId;
|
|
1031
|
-
checksum;
|
|
1032
|
-
firmwareTarget;
|
|
1033
|
-
hardwareVersion;
|
|
1034
|
-
serialize(ctx) {
|
|
1035
|
-
this.payload = new safe_2.Bytes(8);
|
|
1036
|
-
this.payload.writeUInt16BE(this.manufacturerId, 0);
|
|
1037
|
-
this.payload.writeUInt16BE(this.firmwareId, 2);
|
|
1038
|
-
this.payload.writeUInt16BE(this.checksum, 4);
|
|
1039
|
-
this.payload[6] = this.firmwareTarget;
|
|
1040
|
-
this.payload[7] = this.hardwareVersion ?? 0x00;
|
|
1041
|
-
return super.serialize(ctx);
|
|
1042
|
-
}
|
|
1043
|
-
toLogEntry(ctx) {
|
|
1044
|
-
const message = {
|
|
1045
|
-
"manufacturer id": (0, safe_3.num2hex)(this.manufacturerId),
|
|
1046
|
-
"firmware id": (0, safe_3.num2hex)(this.firmwareId),
|
|
1047
|
-
checksum: (0, safe_3.num2hex)(this.checksum),
|
|
1048
|
-
"firmware target": this.firmwareTarget,
|
|
1049
|
-
};
|
|
1050
|
-
if (this.hardwareVersion != undefined) {
|
|
1051
|
-
message["hardware version"] = this.hardwareVersion;
|
|
1052
|
-
}
|
|
1053
|
-
return {
|
|
1054
|
-
...super.toLogEntry(ctx),
|
|
1055
|
-
message,
|
|
1056
|
-
};
|
|
1057
|
-
}
|
|
1058
|
-
};
|
|
1059
|
-
exports.FirmwareUpdateMetaDataCCActivationSet = FirmwareUpdateMetaDataCCActivationSet;
|
|
1060
|
-
exports.FirmwareUpdateMetaDataCCActivationSet = FirmwareUpdateMetaDataCCActivationSet = __decorate([
|
|
1061
|
-
(0, CommandClassDecorators_1.CCCommand)(_Types_1.FirmwareUpdateMetaDataCommand.ActivationSet),
|
|
1062
|
-
(0, CommandClassDecorators_1.expectedCCResponse)(FirmwareUpdateMetaDataCCActivationReport)
|
|
1063
|
-
], FirmwareUpdateMetaDataCCActivationSet);
|
|
1064
|
-
let FirmwareUpdateMetaDataCCPrepareReport = FirmwareUpdateMetaDataCCPrepareReport_1 = class FirmwareUpdateMetaDataCCPrepareReport extends FirmwareUpdateMetaDataCC {
|
|
1065
|
-
constructor(options) {
|
|
1066
|
-
super(options);
|
|
1067
|
-
// TODO: Check implementation:
|
|
1068
|
-
this.status = options.status;
|
|
1069
|
-
this.checksum = options.checksum;
|
|
1070
|
-
}
|
|
1071
|
-
static from(raw, ctx) {
|
|
1072
|
-
(0, safe_1.validatePayload)(raw.payload.length >= 3);
|
|
1073
|
-
const status = raw.payload[0];
|
|
1074
|
-
const checksum = raw.payload.readUInt16BE(1);
|
|
1075
|
-
return new FirmwareUpdateMetaDataCCPrepareReport_1({
|
|
1076
|
-
nodeId: ctx.sourceNodeId,
|
|
1077
|
-
status,
|
|
1078
|
-
checksum,
|
|
1079
|
-
});
|
|
1080
|
-
}
|
|
1081
|
-
status;
|
|
1082
|
-
checksum;
|
|
1083
|
-
toLogEntry(ctx) {
|
|
1084
|
-
return {
|
|
1085
|
-
...super.toLogEntry(ctx),
|
|
1086
|
-
message: {
|
|
1087
|
-
status: (0, safe_3.getEnumMemberName)(_Types_1.FirmwareDownloadStatus, this.status),
|
|
1088
|
-
checksum: (0, safe_3.num2hex)(this.checksum),
|
|
1089
|
-
},
|
|
1090
|
-
};
|
|
1091
|
-
}
|
|
1092
|
-
};
|
|
1093
|
-
exports.FirmwareUpdateMetaDataCCPrepareReport = FirmwareUpdateMetaDataCCPrepareReport;
|
|
1094
|
-
exports.FirmwareUpdateMetaDataCCPrepareReport = FirmwareUpdateMetaDataCCPrepareReport = FirmwareUpdateMetaDataCCPrepareReport_1 = __decorate([
|
|
1095
|
-
(0, CommandClassDecorators_1.CCCommand)(_Types_1.FirmwareUpdateMetaDataCommand.PrepareReport)
|
|
1096
|
-
], FirmwareUpdateMetaDataCCPrepareReport);
|
|
1097
|
-
let FirmwareUpdateMetaDataCCPrepareGet = class FirmwareUpdateMetaDataCCPrepareGet extends FirmwareUpdateMetaDataCC {
|
|
1098
|
-
constructor(options) {
|
|
1099
|
-
super(options);
|
|
1100
|
-
this.manufacturerId = options.manufacturerId;
|
|
1101
|
-
this.firmwareId = options.firmwareId;
|
|
1102
|
-
this.firmwareTarget = options.firmwareTarget;
|
|
1103
|
-
this.fragmentSize = options.fragmentSize;
|
|
1104
|
-
this.hardwareVersion = options.hardwareVersion;
|
|
1105
|
-
}
|
|
1106
|
-
static from(_raw, _ctx) {
|
|
1107
|
-
// TODO: Deserialize payload
|
|
1108
|
-
throw new safe_1.ZWaveError(`${this.name}: deserialization not implemented`, safe_1.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
1109
|
-
// return new FirmwareUpdateMetaDataCCPrepareGet({
|
|
1110
|
-
// nodeId: ctx.sourceNodeId,
|
|
1111
|
-
// });
|
|
1112
|
-
}
|
|
1113
|
-
manufacturerId;
|
|
1114
|
-
firmwareId;
|
|
1115
|
-
firmwareTarget;
|
|
1116
|
-
fragmentSize;
|
|
1117
|
-
hardwareVersion;
|
|
1118
|
-
serialize(ctx) {
|
|
1119
|
-
this.payload = new safe_2.Bytes(8);
|
|
1120
|
-
this.payload.writeUInt16BE(this.manufacturerId, 0);
|
|
1121
|
-
this.payload.writeUInt16BE(this.firmwareId, 2);
|
|
1122
|
-
this.payload[4] = this.firmwareTarget;
|
|
1123
|
-
this.payload.writeUInt16BE(this.fragmentSize, 5);
|
|
1124
|
-
this.payload[7] = this.hardwareVersion;
|
|
1125
|
-
return super.serialize(ctx);
|
|
1126
|
-
}
|
|
1127
|
-
toLogEntry(ctx) {
|
|
1128
|
-
return {
|
|
1129
|
-
...super.toLogEntry(ctx),
|
|
1130
|
-
message: {
|
|
1131
|
-
"manufacturer id": (0, safe_3.num2hex)(this.manufacturerId),
|
|
1132
|
-
"firmware id": (0, safe_3.num2hex)(this.firmwareId),
|
|
1133
|
-
"firmware target": this.firmwareTarget,
|
|
1134
|
-
"fragment size": this.fragmentSize,
|
|
1135
|
-
"hardware version": this.hardwareVersion,
|
|
1136
|
-
},
|
|
1137
|
-
};
|
|
1138
|
-
}
|
|
1139
|
-
};
|
|
1140
|
-
exports.FirmwareUpdateMetaDataCCPrepareGet = FirmwareUpdateMetaDataCCPrepareGet;
|
|
1141
|
-
exports.FirmwareUpdateMetaDataCCPrepareGet = FirmwareUpdateMetaDataCCPrepareGet = __decorate([
|
|
1142
|
-
(0, CommandClassDecorators_1.CCCommand)(_Types_1.FirmwareUpdateMetaDataCommand.PrepareGet),
|
|
1143
|
-
(0, CommandClassDecorators_1.expectedCCResponse)(FirmwareUpdateMetaDataCCReport)
|
|
1144
|
-
], FirmwareUpdateMetaDataCCPrepareGet);
|
|
1145
|
-
//# sourceMappingURL=FirmwareUpdateMetaDataCC.js.map
|