@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
package/build/cc/IndicatorCC.js
DELETED
|
@@ -1,1320 +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 IndicatorCCSet_1, IndicatorCCReport_1, IndicatorCCGet_1, IndicatorCCSupportedReport_1, IndicatorCCSupportedGet_1, IndicatorCCDescriptionReport_1, IndicatorCCDescriptionGet_1;
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.IndicatorCCDescriptionGet = exports.IndicatorCCDescriptionReport = exports.IndicatorCCSupportedGet = exports.IndicatorCCSupportedReport = exports.IndicatorCCGet = exports.IndicatorCCReport = exports.IndicatorCCSet = exports.IndicatorCC = exports.IndicatorCCAPI = exports.IndicatorCCValues = 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__optional_number = $o => {
|
|
18
|
-
function _number($o) {
|
|
19
|
-
return typeof $o !== "number" ? {} : null;
|
|
20
|
-
}
|
|
21
|
-
function optional__number($o) {
|
|
22
|
-
if ($o !== undefined) {
|
|
23
|
-
const error = _number($o);
|
|
24
|
-
if (error)
|
|
25
|
-
return error;
|
|
26
|
-
}
|
|
27
|
-
return null;
|
|
28
|
-
}
|
|
29
|
-
return optional__number($o);
|
|
30
|
-
};
|
|
31
|
-
const __assertType__su__number_sa__5_ea_5_5_5_eu = $o => {
|
|
32
|
-
function _number($o) {
|
|
33
|
-
return typeof $o !== "number" ? {} : null;
|
|
34
|
-
}
|
|
35
|
-
function _false($o) {
|
|
36
|
-
return $o !== false ? {} : null;
|
|
37
|
-
}
|
|
38
|
-
function _true($o) {
|
|
39
|
-
return $o !== true ? {} : null;
|
|
40
|
-
}
|
|
41
|
-
function su__number__7__8_eu($o) {
|
|
42
|
-
const conditions = [_number, _false, _true];
|
|
43
|
-
for (const condition of conditions) {
|
|
44
|
-
const error = condition($o);
|
|
45
|
-
if (!error)
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
return {};
|
|
49
|
-
}
|
|
50
|
-
function _5($o) {
|
|
51
|
-
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
52
|
-
return {};
|
|
53
|
-
if ("indicatorId" in $o && $o["indicatorId"] !== undefined) {
|
|
54
|
-
const error = _number($o["indicatorId"]);
|
|
55
|
-
if (error)
|
|
56
|
-
return error;
|
|
57
|
-
}
|
|
58
|
-
else
|
|
59
|
-
return {};
|
|
60
|
-
if ("propertyId" in $o && $o["propertyId"] !== undefined) {
|
|
61
|
-
const error = _number($o["propertyId"]);
|
|
62
|
-
if (error)
|
|
63
|
-
return error;
|
|
64
|
-
}
|
|
65
|
-
else
|
|
66
|
-
return {};
|
|
67
|
-
if ("value" in $o && $o["value"] !== undefined) {
|
|
68
|
-
const error = su__number__7__8_eu($o["value"]);
|
|
69
|
-
if (error)
|
|
70
|
-
return error;
|
|
71
|
-
}
|
|
72
|
-
else
|
|
73
|
-
return {};
|
|
74
|
-
return null;
|
|
75
|
-
}
|
|
76
|
-
function sa__5_ea_5($o) {
|
|
77
|
-
if (!Array.isArray($o))
|
|
78
|
-
return {};
|
|
79
|
-
for (let i = 0; i < $o.length; i++) {
|
|
80
|
-
const error = _5($o[i]);
|
|
81
|
-
if (error)
|
|
82
|
-
return error;
|
|
83
|
-
}
|
|
84
|
-
return null;
|
|
85
|
-
}
|
|
86
|
-
function su__number_sa__5_ea_5_5_5_eu($o) {
|
|
87
|
-
const conditions = [_number, sa__5_ea_5];
|
|
88
|
-
for (const condition of conditions) {
|
|
89
|
-
const error = condition($o);
|
|
90
|
-
if (!error)
|
|
91
|
-
return null;
|
|
92
|
-
}
|
|
93
|
-
return {};
|
|
94
|
-
}
|
|
95
|
-
return su__number_sa__5_ea_5_5_5_eu($o);
|
|
96
|
-
};
|
|
97
|
-
const __assertType__IndicatorCCReportOptions = $o => {
|
|
98
|
-
function _number($o) {
|
|
99
|
-
return typeof $o !== "number" ? {} : null;
|
|
100
|
-
}
|
|
101
|
-
function _1($o) {
|
|
102
|
-
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
103
|
-
return {};
|
|
104
|
-
if ("value" in $o && $o["value"] !== undefined) {
|
|
105
|
-
const error = _number($o["value"]);
|
|
106
|
-
if (error)
|
|
107
|
-
return error;
|
|
108
|
-
}
|
|
109
|
-
else
|
|
110
|
-
return {};
|
|
111
|
-
return null;
|
|
112
|
-
}
|
|
113
|
-
function _false($o) {
|
|
114
|
-
return $o !== false ? {} : null;
|
|
115
|
-
}
|
|
116
|
-
function _true($o) {
|
|
117
|
-
return $o !== true ? {} : null;
|
|
118
|
-
}
|
|
119
|
-
function su__number__8__9_eu($o) {
|
|
120
|
-
const conditions = [_number, _false, _true];
|
|
121
|
-
for (const condition of conditions) {
|
|
122
|
-
const error = condition($o);
|
|
123
|
-
if (!error)
|
|
124
|
-
return null;
|
|
125
|
-
}
|
|
126
|
-
return {};
|
|
127
|
-
}
|
|
128
|
-
function _5($o) {
|
|
129
|
-
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
130
|
-
return {};
|
|
131
|
-
if ("indicatorId" in $o && $o["indicatorId"] !== undefined) {
|
|
132
|
-
const error = _number($o["indicatorId"]);
|
|
133
|
-
if (error)
|
|
134
|
-
return error;
|
|
135
|
-
}
|
|
136
|
-
else
|
|
137
|
-
return {};
|
|
138
|
-
if ("propertyId" in $o && $o["propertyId"] !== undefined) {
|
|
139
|
-
const error = _number($o["propertyId"]);
|
|
140
|
-
if (error)
|
|
141
|
-
return error;
|
|
142
|
-
}
|
|
143
|
-
else
|
|
144
|
-
return {};
|
|
145
|
-
if ("value" in $o && $o["value"] !== undefined) {
|
|
146
|
-
const error = su__number__8__9_eu($o["value"]);
|
|
147
|
-
if (error)
|
|
148
|
-
return error;
|
|
149
|
-
}
|
|
150
|
-
else
|
|
151
|
-
return {};
|
|
152
|
-
return null;
|
|
153
|
-
}
|
|
154
|
-
function sa__5_ea_5($o) {
|
|
155
|
-
if (!Array.isArray($o))
|
|
156
|
-
return {};
|
|
157
|
-
for (let i = 0; i < $o.length; i++) {
|
|
158
|
-
const error = _5($o[i]);
|
|
159
|
-
if (error)
|
|
160
|
-
return error;
|
|
161
|
-
}
|
|
162
|
-
return null;
|
|
163
|
-
}
|
|
164
|
-
function _2($o) {
|
|
165
|
-
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
166
|
-
return {};
|
|
167
|
-
if ("values" in $o && $o["values"] !== undefined) {
|
|
168
|
-
const error = sa__5_ea_5($o["values"]);
|
|
169
|
-
if (error)
|
|
170
|
-
return error;
|
|
171
|
-
}
|
|
172
|
-
else
|
|
173
|
-
return {};
|
|
174
|
-
return null;
|
|
175
|
-
}
|
|
176
|
-
function su__1__2_eu($o) {
|
|
177
|
-
const conditions = [_1, _2];
|
|
178
|
-
for (const condition of conditions) {
|
|
179
|
-
const error = condition($o);
|
|
180
|
-
if (!error)
|
|
181
|
-
return null;
|
|
182
|
-
}
|
|
183
|
-
return {};
|
|
184
|
-
}
|
|
185
|
-
return su__1__2_eu($o);
|
|
186
|
-
};
|
|
187
|
-
const __assertType__number = $o => {
|
|
188
|
-
function _number($o) {
|
|
189
|
-
return typeof $o !== "number" ? {} : null;
|
|
190
|
-
}
|
|
191
|
-
return _number($o);
|
|
192
|
-
};
|
|
193
|
-
const __assertType__sa__number_ea_2 = $o => {
|
|
194
|
-
function _number($o) {
|
|
195
|
-
return typeof $o !== "number" ? {} : null;
|
|
196
|
-
}
|
|
197
|
-
function sa__number_ea_2($o) {
|
|
198
|
-
if (!Array.isArray($o))
|
|
199
|
-
return {};
|
|
200
|
-
for (let i = 0; i < $o.length; i++) {
|
|
201
|
-
const error = _number($o[i]);
|
|
202
|
-
if (error)
|
|
203
|
-
return error;
|
|
204
|
-
}
|
|
205
|
-
return null;
|
|
206
|
-
}
|
|
207
|
-
return sa__number_ea_2($o);
|
|
208
|
-
};
|
|
209
|
-
const __assertType__string = $o => {
|
|
210
|
-
function _string($o) {
|
|
211
|
-
return typeof $o !== "string" ? {} : null;
|
|
212
|
-
}
|
|
213
|
-
return _string($o);
|
|
214
|
-
};
|
|
215
|
-
const __assertType__su__undefined__string__3_eu = $o => {
|
|
216
|
-
function _undefined($o) {
|
|
217
|
-
return $o !== undefined ? {} : null;
|
|
218
|
-
}
|
|
219
|
-
function _string($o) {
|
|
220
|
-
return typeof $o !== "string" ? {} : null;
|
|
221
|
-
}
|
|
222
|
-
function _number($o) {
|
|
223
|
-
return typeof $o !== "number" ? {} : null;
|
|
224
|
-
}
|
|
225
|
-
function _3($o) {
|
|
226
|
-
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
227
|
-
return {};
|
|
228
|
-
if ("hours" in $o && $o["hours"] !== undefined) {
|
|
229
|
-
const error = _number($o["hours"]);
|
|
230
|
-
if (error)
|
|
231
|
-
return error;
|
|
232
|
-
}
|
|
233
|
-
if ("minutes" in $o && $o["minutes"] !== undefined) {
|
|
234
|
-
const error = _number($o["minutes"]);
|
|
235
|
-
if (error)
|
|
236
|
-
return error;
|
|
237
|
-
}
|
|
238
|
-
if ("seconds" in $o && $o["seconds"] !== undefined) {
|
|
239
|
-
const error = _number($o["seconds"]);
|
|
240
|
-
if (error)
|
|
241
|
-
return error;
|
|
242
|
-
}
|
|
243
|
-
return null;
|
|
244
|
-
}
|
|
245
|
-
function su__undefined__string__3_eu($o) {
|
|
246
|
-
const conditions = [_undefined, _string, _3];
|
|
247
|
-
for (const condition of conditions) {
|
|
248
|
-
const error = condition($o);
|
|
249
|
-
if (!error)
|
|
250
|
-
return null;
|
|
251
|
-
}
|
|
252
|
-
return {};
|
|
253
|
-
}
|
|
254
|
-
return su__undefined__string__3_eu($o);
|
|
255
|
-
};
|
|
256
|
-
const safe_1 = require("@zwave-js/core/safe");
|
|
257
|
-
const safe_2 = require("@zwave-js/shared/safe");
|
|
258
|
-
const safe_3 = require("@zwave-js/shared/safe");
|
|
259
|
-
const math_1 = require("alcalzone-shared/math");
|
|
260
|
-
const typeguards_1 = require("alcalzone-shared/typeguards");
|
|
261
|
-
const API_1 = require("../lib/API");
|
|
262
|
-
const CommandClass_1 = require("../lib/CommandClass");
|
|
263
|
-
const CommandClassDecorators_1 = require("../lib/CommandClassDecorators");
|
|
264
|
-
const Values_1 = require("../lib/Values");
|
|
265
|
-
const _Types_1 = require("../lib/_Types");
|
|
266
|
-
function isManufacturerDefinedIndicator(indicatorId) {
|
|
267
|
-
return indicatorId >= 0x80 && indicatorId <= 0x9f;
|
|
268
|
-
}
|
|
269
|
-
const timeoutStringRegex = /^(?:(?<hoursStr>\d+)h)?(?:(?<minutesStr>\d+)m)?(?:(?<secondsStr>\d+(?:\.\d+)?)s)?$/i;
|
|
270
|
-
function parseIndicatorTimeoutString(text) {
|
|
271
|
-
if (!text.length)
|
|
272
|
-
return undefined;
|
|
273
|
-
// Try to parse the numeric parts from a timeout
|
|
274
|
-
const match = timeoutStringRegex.exec(text);
|
|
275
|
-
if (!match)
|
|
276
|
-
return undefined;
|
|
277
|
-
const { hoursStr, minutesStr, secondsStr } = match.groups;
|
|
278
|
-
if (!hoursStr && !minutesStr && !secondsStr)
|
|
279
|
-
return undefined;
|
|
280
|
-
const ret = {};
|
|
281
|
-
if (hoursStr) {
|
|
282
|
-
ret.hours = (0, math_1.clamp)(parseInt(hoursStr, 10), 0, 255);
|
|
283
|
-
}
|
|
284
|
-
if (minutesStr) {
|
|
285
|
-
ret.minutes = (0, math_1.clamp)(parseInt(minutesStr, 10), 0, 255);
|
|
286
|
-
}
|
|
287
|
-
if (secondsStr) {
|
|
288
|
-
ret.seconds = (0, math_1.clamp)((0, math_1.roundTo)(parseFloat(secondsStr), 2), 0, 59.99);
|
|
289
|
-
}
|
|
290
|
-
return ret;
|
|
291
|
-
}
|
|
292
|
-
function indicatorObjectsToTimeout(values) {
|
|
293
|
-
const timeoutValues = values.filter((v) => [0x0a, 0x06, 0x07, 0x08].includes(v.propertyId));
|
|
294
|
-
if (!timeoutValues.length)
|
|
295
|
-
return undefined;
|
|
296
|
-
const hours = (timeoutValues.find((v) => v.propertyId === 0x0a)?.value
|
|
297
|
-
?? 0);
|
|
298
|
-
const minutes = (timeoutValues.find((v) => v.propertyId === 0x06)?.value
|
|
299
|
-
?? 0);
|
|
300
|
-
const seconds = (0, math_1.clamp)(timeoutValues.find((v) => v.propertyId === 0x07)
|
|
301
|
-
?.value ?? 0, 0, 59)
|
|
302
|
-
+ (0, math_1.clamp)(timeoutValues.find((v) => v.propertyId === 0x08)
|
|
303
|
-
?.value ?? 0, 0, 99)
|
|
304
|
-
/ 100;
|
|
305
|
-
return {
|
|
306
|
-
hours,
|
|
307
|
-
minutes,
|
|
308
|
-
seconds,
|
|
309
|
-
};
|
|
310
|
-
}
|
|
311
|
-
exports.IndicatorCCValues = Object.freeze({
|
|
312
|
-
...Values_1.V.defineStaticCCValues(safe_1.CommandClasses.Indicator, {
|
|
313
|
-
...Values_1.V.staticProperty("supportedIndicatorIds", undefined, {
|
|
314
|
-
internal: true,
|
|
315
|
-
}),
|
|
316
|
-
...Values_1.V.staticPropertyWithName("valueV1", "value", {
|
|
317
|
-
...safe_1.ValueMetadata.UInt8,
|
|
318
|
-
label: "Indicator value",
|
|
319
|
-
ccSpecific: {
|
|
320
|
-
indicatorId: 0,
|
|
321
|
-
},
|
|
322
|
-
}),
|
|
323
|
-
// Convenience values for indicators that are split across multiple properties
|
|
324
|
-
...Values_1.V.staticProperty("identify", {
|
|
325
|
-
...safe_1.ValueMetadata.WriteOnlyBoolean,
|
|
326
|
-
label: "Identify",
|
|
327
|
-
states: {
|
|
328
|
-
true: "Identify",
|
|
329
|
-
},
|
|
330
|
-
}, { minVersion: 3 }),
|
|
331
|
-
...Values_1.V.staticProperty("timeout", {
|
|
332
|
-
...safe_1.ValueMetadata.String,
|
|
333
|
-
label: "Timeout",
|
|
334
|
-
}, { minVersion: 3 }),
|
|
335
|
-
}),
|
|
336
|
-
...Values_1.V.defineDynamicCCValues(safe_1.CommandClasses.Indicator, {
|
|
337
|
-
...Values_1.V.dynamicPropertyAndKeyWithName("supportedPropertyIDs", "supportedPropertyIDs", (indicatorId) => indicatorId, ({ property, propertyKey }) => property === "supportedPropertyIDs"
|
|
338
|
-
&& typeof propertyKey === "number", undefined, { internal: true }),
|
|
339
|
-
...Values_1.V.dynamicPropertyAndKeyWithName("valueV2",
|
|
340
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
341
|
-
(indicatorId, propertyId) => indicatorId, (indicatorId, propertyId) => propertyId, ({ property, propertyKey }) => typeof property === "number" && typeof propertyKey === "number",
|
|
342
|
-
// The metadata is highly dependent on the indicator and property
|
|
343
|
-
// so this is just a baseline
|
|
344
|
-
(indicatorId, propertyId) => ({
|
|
345
|
-
...safe_1.ValueMetadata.Any,
|
|
346
|
-
ccSpecific: {
|
|
347
|
-
indicatorId,
|
|
348
|
-
propertyId,
|
|
349
|
-
},
|
|
350
|
-
}), { minVersion: 2 }),
|
|
351
|
-
...Values_1.V.dynamicPropertyWithName("indicatorDescription", (indicatorId) => indicatorId, ({ property }) => typeof property === "number", undefined, { internal: true, minVersion: 4 }),
|
|
352
|
-
}),
|
|
353
|
-
});
|
|
354
|
-
/**
|
|
355
|
-
* Looks up the configured metadata for the given indicator and property
|
|
356
|
-
*/
|
|
357
|
-
function getIndicatorMetadata(indicatorId, propertyId, overrideIndicatorLabel) {
|
|
358
|
-
const label = overrideIndicatorLabel
|
|
359
|
-
|| getIndicatorName(indicatorId);
|
|
360
|
-
const prop = (0, safe_1.getIndicatorProperty)(propertyId);
|
|
361
|
-
const baseMetadata = exports.IndicatorCCValues.valueV2(indicatorId, propertyId).meta;
|
|
362
|
-
if (!label && !prop) {
|
|
363
|
-
return {
|
|
364
|
-
...baseMetadata,
|
|
365
|
-
...safe_1.ValueMetadata.UInt8,
|
|
366
|
-
};
|
|
367
|
-
}
|
|
368
|
-
else if (!prop) {
|
|
369
|
-
return {
|
|
370
|
-
...baseMetadata,
|
|
371
|
-
...safe_1.ValueMetadata.UInt8,
|
|
372
|
-
label,
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
else {
|
|
376
|
-
if (prop.type === "boolean") {
|
|
377
|
-
return {
|
|
378
|
-
...baseMetadata,
|
|
379
|
-
...safe_1.ValueMetadata.Boolean,
|
|
380
|
-
label: `${label} - ${prop.label}`,
|
|
381
|
-
description: prop.description,
|
|
382
|
-
readable: !prop.readonly,
|
|
383
|
-
};
|
|
384
|
-
}
|
|
385
|
-
else {
|
|
386
|
-
// UInt8
|
|
387
|
-
return {
|
|
388
|
-
...baseMetadata,
|
|
389
|
-
...safe_1.ValueMetadata.UInt8,
|
|
390
|
-
label: `${label} - ${prop.label}`,
|
|
391
|
-
description: prop.description,
|
|
392
|
-
min: prop.min,
|
|
393
|
-
max: prop.max,
|
|
394
|
-
readable: !prop.readonly,
|
|
395
|
-
};
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
function getIndicatorName(indicatorId) {
|
|
400
|
-
if (indicatorId) {
|
|
401
|
-
return `${(0, safe_3.num2hex)(indicatorId)} (${indicatorId in safe_1.Indicator ? safe_1.Indicator[indicatorId] : "Unknown"})`;
|
|
402
|
-
}
|
|
403
|
-
else {
|
|
404
|
-
return "0 (default)";
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
const MAX_INDICATOR_OBJECTS = 31;
|
|
408
|
-
let IndicatorCCAPI = class IndicatorCCAPI extends API_1.CCAPI {
|
|
409
|
-
supportsCommand(cmd) {
|
|
410
|
-
switch (cmd) {
|
|
411
|
-
case _Types_1.IndicatorCommand.Get:
|
|
412
|
-
case _Types_1.IndicatorCommand.Report:
|
|
413
|
-
return this.isSinglecast();
|
|
414
|
-
case _Types_1.IndicatorCommand.Set:
|
|
415
|
-
return true; // This is mandatory
|
|
416
|
-
case _Types_1.IndicatorCommand.SupportedGet:
|
|
417
|
-
case _Types_1.IndicatorCommand.SupportedReport:
|
|
418
|
-
return this.version >= 2 && this.isSinglecast();
|
|
419
|
-
case _Types_1.IndicatorCommand.DescriptionGet:
|
|
420
|
-
case _Types_1.IndicatorCommand.DescriptionReport:
|
|
421
|
-
return this.version >= 4 && this.isSinglecast();
|
|
422
|
-
}
|
|
423
|
-
return super.supportsCommand(cmd);
|
|
424
|
-
}
|
|
425
|
-
get [API_1.SET_VALUE]() {
|
|
426
|
-
return async function ({ property, propertyKey }, value) {
|
|
427
|
-
if (property === "value") {
|
|
428
|
-
// V1 value
|
|
429
|
-
if (typeof value !== "number") {
|
|
430
|
-
(0, API_1.throwWrongValueType)(this.ccId, property, "number", typeof value);
|
|
431
|
-
}
|
|
432
|
-
return this.set(value);
|
|
433
|
-
}
|
|
434
|
-
else if (typeof property === "number"
|
|
435
|
-
&& typeof propertyKey === "number") {
|
|
436
|
-
const indicatorId = property;
|
|
437
|
-
const propertyId = propertyKey;
|
|
438
|
-
const expectedType = getIndicatorMetadata(indicatorId, propertyId).type;
|
|
439
|
-
// V2+ value
|
|
440
|
-
if (typeof value !== expectedType) {
|
|
441
|
-
(0, API_1.throwWrongValueType)(this.ccId, property, expectedType, typeof value);
|
|
442
|
-
}
|
|
443
|
-
return this.set([
|
|
444
|
-
{
|
|
445
|
-
indicatorId: property,
|
|
446
|
-
propertyId: propertyKey,
|
|
447
|
-
value: value,
|
|
448
|
-
},
|
|
449
|
-
]);
|
|
450
|
-
}
|
|
451
|
-
else if (property === "identify") {
|
|
452
|
-
if (typeof value !== "boolean") {
|
|
453
|
-
(0, API_1.throwWrongValueType)(this.ccId, property, "boolean", typeof value);
|
|
454
|
-
}
|
|
455
|
-
return this.identify();
|
|
456
|
-
}
|
|
457
|
-
else {
|
|
458
|
-
(0, API_1.throwUnsupportedProperty)(this.ccId, property);
|
|
459
|
-
}
|
|
460
|
-
};
|
|
461
|
-
}
|
|
462
|
-
get [API_1.POLL_VALUE]() {
|
|
463
|
-
return async function ({ property }) {
|
|
464
|
-
if (property === "value")
|
|
465
|
-
return this.get();
|
|
466
|
-
if (typeof property === "number") {
|
|
467
|
-
return this.get(property);
|
|
468
|
-
}
|
|
469
|
-
(0, API_1.throwUnsupportedProperty)(this.ccId, property);
|
|
470
|
-
};
|
|
471
|
-
}
|
|
472
|
-
async get(indicatorId) {
|
|
473
|
-
__assertType("indicatorId", "(optional) number", __assertType__optional_number.bind(void 0, indicatorId));
|
|
474
|
-
this.assertSupportsCommand(_Types_1.IndicatorCommand, _Types_1.IndicatorCommand.Get);
|
|
475
|
-
const cc = new IndicatorCCGet({
|
|
476
|
-
nodeId: this.endpoint.nodeId,
|
|
477
|
-
endpointIndex: this.endpoint.index,
|
|
478
|
-
indicatorId,
|
|
479
|
-
});
|
|
480
|
-
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
481
|
-
if (!response)
|
|
482
|
-
return;
|
|
483
|
-
if (response.values)
|
|
484
|
-
return response.values;
|
|
485
|
-
return response.indicator0Value;
|
|
486
|
-
}
|
|
487
|
-
async set(value) {
|
|
488
|
-
__assertType("value", undefined, __assertType__su__number_sa__5_ea_5_5_5_eu.bind(void 0, value));
|
|
489
|
-
this.assertSupportsCommand(_Types_1.IndicatorCommand, _Types_1.IndicatorCommand.Set);
|
|
490
|
-
if (this.version === 1 && typeof value !== "number") {
|
|
491
|
-
throw new safe_1.ZWaveError(`Node ${this.endpoint
|
|
492
|
-
.nodeId} only supports IndicatorCC V1 which requires a single value to be set`, safe_1.ZWaveErrorCodes.Argument_Invalid);
|
|
493
|
-
}
|
|
494
|
-
else if (this.version >= 2
|
|
495
|
-
&& (0, typeguards_1.isArray)(value)
|
|
496
|
-
&& value.length > MAX_INDICATOR_OBJECTS) {
|
|
497
|
-
throw new safe_1.ZWaveError(`Only ${MAX_INDICATOR_OBJECTS} indicator values can be set at a time!`, safe_1.ZWaveErrorCodes.Argument_Invalid);
|
|
498
|
-
}
|
|
499
|
-
const cc = new IndicatorCCSet({
|
|
500
|
-
nodeId: this.endpoint.nodeId,
|
|
501
|
-
endpointIndex: this.endpoint.index,
|
|
502
|
-
...(typeof value === "number" ? { value } : { values: value }),
|
|
503
|
-
});
|
|
504
|
-
return this.host.sendCommand(cc, this.commandOptions);
|
|
505
|
-
}
|
|
506
|
-
async sendReport(options) {
|
|
507
|
-
__assertType("options", "IndicatorCCReportOptions", __assertType__IndicatorCCReportOptions.bind(void 0, options));
|
|
508
|
-
this.assertSupportsCommand(_Types_1.IndicatorCommand, _Types_1.IndicatorCommand.Report);
|
|
509
|
-
const cc = new IndicatorCCReport({
|
|
510
|
-
nodeId: this.endpoint.nodeId,
|
|
511
|
-
endpointIndex: this.endpoint.index,
|
|
512
|
-
...options,
|
|
513
|
-
});
|
|
514
|
-
await this.host.sendCommand(cc, this.commandOptions);
|
|
515
|
-
}
|
|
516
|
-
async getSupported(indicatorId) {
|
|
517
|
-
__assertType("indicatorId", "number", __assertType__number.bind(void 0, indicatorId));
|
|
518
|
-
this.assertSupportsCommand(_Types_1.IndicatorCommand, _Types_1.IndicatorCommand.SupportedGet);
|
|
519
|
-
const cc = new IndicatorCCSupportedGet({
|
|
520
|
-
nodeId: this.endpoint.nodeId,
|
|
521
|
-
endpointIndex: this.endpoint.index,
|
|
522
|
-
indicatorId,
|
|
523
|
-
});
|
|
524
|
-
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
525
|
-
if (response) {
|
|
526
|
-
return {
|
|
527
|
-
// Include the actual indicator ID if 0x00 was requested
|
|
528
|
-
...(indicatorId === 0x00
|
|
529
|
-
? { indicatorId: response.indicatorId }
|
|
530
|
-
: undefined),
|
|
531
|
-
supportedProperties: response.supportedProperties,
|
|
532
|
-
nextIndicatorId: response.nextIndicatorId,
|
|
533
|
-
};
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
async reportSupported(indicatorId, supportedProperties, nextIndicatorId) {
|
|
537
|
-
__assertType("indicatorId", "number", __assertType__number.bind(void 0, indicatorId));
|
|
538
|
-
__assertType("supportedProperties", undefined, __assertType__sa__number_ea_2.bind(void 0, supportedProperties));
|
|
539
|
-
__assertType("nextIndicatorId", "number", __assertType__number.bind(void 0, nextIndicatorId));
|
|
540
|
-
this.assertSupportsCommand(_Types_1.IndicatorCommand, _Types_1.IndicatorCommand.SupportedReport);
|
|
541
|
-
const cc = new IndicatorCCSupportedReport({
|
|
542
|
-
nodeId: this.endpoint.nodeId,
|
|
543
|
-
endpointIndex: this.endpoint.index,
|
|
544
|
-
indicatorId,
|
|
545
|
-
supportedProperties,
|
|
546
|
-
nextIndicatorId,
|
|
547
|
-
});
|
|
548
|
-
await this.host.sendCommand(cc, this.commandOptions);
|
|
549
|
-
}
|
|
550
|
-
async reportDescription(indicatorId, description) {
|
|
551
|
-
__assertType("indicatorId", "number", __assertType__number.bind(void 0, indicatorId));
|
|
552
|
-
__assertType("description", "string", __assertType__string.bind(void 0, description));
|
|
553
|
-
this.assertSupportsCommand(_Types_1.IndicatorCommand, _Types_1.IndicatorCommand.DescriptionReport);
|
|
554
|
-
const cc = new IndicatorCCDescriptionReport({
|
|
555
|
-
nodeId: this.endpoint.nodeId,
|
|
556
|
-
endpointIndex: this.endpoint.index,
|
|
557
|
-
indicatorId,
|
|
558
|
-
description,
|
|
559
|
-
});
|
|
560
|
-
await this.host.sendCommand(cc, this.commandOptions);
|
|
561
|
-
}
|
|
562
|
-
/**
|
|
563
|
-
* Instructs the node to identify itself. Available starting with V3 of this CC.
|
|
564
|
-
*/
|
|
565
|
-
async identify() {
|
|
566
|
-
if (this.version < 3) {
|
|
567
|
-
throw new safe_1.ZWaveError(`The identify command is only supported in Indicator CC version 3 and above`, safe_1.ZWaveErrorCodes.CC_NotSupported);
|
|
568
|
-
}
|
|
569
|
-
return this.set([
|
|
570
|
-
{
|
|
571
|
-
indicatorId: 0x50,
|
|
572
|
-
propertyId: 0x03,
|
|
573
|
-
value: 0x08,
|
|
574
|
-
},
|
|
575
|
-
{
|
|
576
|
-
indicatorId: 0x50,
|
|
577
|
-
propertyId: 0x04,
|
|
578
|
-
value: 0x03,
|
|
579
|
-
},
|
|
580
|
-
{
|
|
581
|
-
indicatorId: 0x50,
|
|
582
|
-
propertyId: 0x05,
|
|
583
|
-
value: 0x06,
|
|
584
|
-
},
|
|
585
|
-
]);
|
|
586
|
-
}
|
|
587
|
-
/**
|
|
588
|
-
* Set a timeout for a given indicator ID after which the indicator will be turned off.
|
|
589
|
-
* @param timeout The timeout in one of the supported forms:
|
|
590
|
-
* - a timeout string in the form `12h18m17.59s`. All parts (hours, minutes, seconds, hundredths) are optional, but must be specified in this order. An empty string will be treated like `undefined`.
|
|
591
|
-
* - an object specifying the timeout parts. An empty object will be treated like `undefined`.
|
|
592
|
-
* - `undefined` to disable the timeout.
|
|
593
|
-
*/
|
|
594
|
-
async setTimeout(indicatorId, timeout) {
|
|
595
|
-
__assertType("indicatorId", "number", __assertType__number.bind(void 0, indicatorId));
|
|
596
|
-
__assertType("timeout", undefined, __assertType__su__undefined__string__3_eu.bind(void 0, timeout));
|
|
597
|
-
this.assertPhysicalEndpoint(this.endpoint);
|
|
598
|
-
if (this.version < 3) {
|
|
599
|
-
throw new safe_1.ZWaveError(`The setTimeout command is only supported in Indicator CC version 3 and above`, safe_1.ZWaveErrorCodes.CC_NotSupported);
|
|
600
|
-
}
|
|
601
|
-
if (typeof timeout === "string") {
|
|
602
|
-
if (timeout === "") {
|
|
603
|
-
timeout = undefined;
|
|
604
|
-
}
|
|
605
|
-
else {
|
|
606
|
-
const parsed = parseIndicatorTimeoutString(timeout);
|
|
607
|
-
if (!parsed) {
|
|
608
|
-
throw new safe_1.ZWaveError(`The timeout string "${timeout}" is not valid`, safe_1.ZWaveErrorCodes.Argument_Invalid);
|
|
609
|
-
}
|
|
610
|
-
timeout = parsed;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
const supportedPropertyIDs = IndicatorCC.getSupportedPropertyIDsCached(this.host, this.endpoint, indicatorId);
|
|
614
|
-
const objects = [];
|
|
615
|
-
if (timeout) {
|
|
616
|
-
const hours = timeout.hours ?? 0;
|
|
617
|
-
const minutes = timeout.minutes ?? 0;
|
|
618
|
-
const seconds = Math.floor(timeout.seconds ?? 0);
|
|
619
|
-
const hundredths = Math.round(((timeout.seconds ?? 0) % 1) * 100);
|
|
620
|
-
if (hours) {
|
|
621
|
-
if (!supportedPropertyIDs?.includes(0x0a)) {
|
|
622
|
-
throw new safe_1.ZWaveError(`The indicator ${indicatorId} does not support setting the timeout in hours`, safe_1.ZWaveErrorCodes.Argument_Invalid);
|
|
623
|
-
}
|
|
624
|
-
objects.push({
|
|
625
|
-
indicatorId,
|
|
626
|
-
propertyId: 0x0a,
|
|
627
|
-
value: hours,
|
|
628
|
-
});
|
|
629
|
-
}
|
|
630
|
-
if (minutes) {
|
|
631
|
-
if (!supportedPropertyIDs?.includes(0x06)) {
|
|
632
|
-
throw new safe_1.ZWaveError(`The indicator ${indicatorId} does not support setting the timeout in minutes`, safe_1.ZWaveErrorCodes.Argument_Invalid);
|
|
633
|
-
}
|
|
634
|
-
objects.push({
|
|
635
|
-
indicatorId,
|
|
636
|
-
propertyId: 0x06,
|
|
637
|
-
value: minutes,
|
|
638
|
-
});
|
|
639
|
-
}
|
|
640
|
-
if (seconds) {
|
|
641
|
-
if (!supportedPropertyIDs?.includes(0x07)) {
|
|
642
|
-
throw new safe_1.ZWaveError(`The indicator ${indicatorId} does not support setting the timeout in seconds`, safe_1.ZWaveErrorCodes.Argument_Invalid);
|
|
643
|
-
}
|
|
644
|
-
objects.push({
|
|
645
|
-
indicatorId,
|
|
646
|
-
propertyId: 0x07,
|
|
647
|
-
value: seconds,
|
|
648
|
-
});
|
|
649
|
-
}
|
|
650
|
-
if (hundredths) {
|
|
651
|
-
if (!supportedPropertyIDs?.includes(0x08)) {
|
|
652
|
-
throw new safe_1.ZWaveError(`The indicator ${indicatorId} does not support setting the timeout in 1/100 seconds`, safe_1.ZWaveErrorCodes.Argument_Invalid);
|
|
653
|
-
}
|
|
654
|
-
objects.push({
|
|
655
|
-
indicatorId,
|
|
656
|
-
propertyId: 0x08,
|
|
657
|
-
value: hundredths,
|
|
658
|
-
});
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
if (!objects.length) {
|
|
662
|
-
objects.push(...(supportedPropertyIDs ?? []).map((p) => ({
|
|
663
|
-
indicatorId,
|
|
664
|
-
propertyId: p,
|
|
665
|
-
value: 0,
|
|
666
|
-
})));
|
|
667
|
-
}
|
|
668
|
-
return this.set(objects);
|
|
669
|
-
}
|
|
670
|
-
/**
|
|
671
|
-
* Returns the timeout after which the given indicator will be turned off.
|
|
672
|
-
*/
|
|
673
|
-
async getTimeout(indicatorId) {
|
|
674
|
-
__assertType("indicatorId", "number", __assertType__number.bind(void 0, indicatorId));
|
|
675
|
-
const values = await this.get(indicatorId);
|
|
676
|
-
if (!(0, typeguards_1.isArray)(values))
|
|
677
|
-
return;
|
|
678
|
-
return indicatorObjectsToTimeout(values);
|
|
679
|
-
}
|
|
680
|
-
async getDescription(indicatorId) {
|
|
681
|
-
__assertType("indicatorId", "number", __assertType__number.bind(void 0, indicatorId));
|
|
682
|
-
this.assertSupportsCommand(_Types_1.IndicatorCommand, _Types_1.IndicatorCommand.DescriptionGet);
|
|
683
|
-
const cc = new IndicatorCCDescriptionGet({
|
|
684
|
-
nodeId: this.endpoint.nodeId,
|
|
685
|
-
endpointIndex: this.endpoint.index,
|
|
686
|
-
indicatorId,
|
|
687
|
-
});
|
|
688
|
-
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
689
|
-
return response?.description;
|
|
690
|
-
}
|
|
691
|
-
};
|
|
692
|
-
exports.IndicatorCCAPI = IndicatorCCAPI;
|
|
693
|
-
exports.IndicatorCCAPI = IndicatorCCAPI = __decorate([
|
|
694
|
-
(0, CommandClassDecorators_1.API)(safe_1.CommandClasses.Indicator)
|
|
695
|
-
], IndicatorCCAPI);
|
|
696
|
-
let IndicatorCC = class IndicatorCC extends CommandClass_1.CommandClass {
|
|
697
|
-
async interview(ctx) {
|
|
698
|
-
const node = this.getNode(ctx);
|
|
699
|
-
const endpoint = this.getEndpoint(ctx);
|
|
700
|
-
const api = API_1.CCAPI.create(safe_1.CommandClasses.Indicator, ctx, endpoint).withOptions({
|
|
701
|
-
priority: safe_1.MessagePriority.NodeQuery,
|
|
702
|
-
});
|
|
703
|
-
ctx.logNode(node.id, {
|
|
704
|
-
endpoint: this.endpointIndex,
|
|
705
|
-
message: `Interviewing ${this.ccName}...`,
|
|
706
|
-
direction: "none",
|
|
707
|
-
});
|
|
708
|
-
if (api.version > 1) {
|
|
709
|
-
ctx.logNode(node.id, {
|
|
710
|
-
endpoint: this.endpointIndex,
|
|
711
|
-
message: "scanning supported indicator IDs...",
|
|
712
|
-
direction: "outbound",
|
|
713
|
-
});
|
|
714
|
-
// Query ID 0 to get the first supported ID
|
|
715
|
-
let curId = 0x00;
|
|
716
|
-
const supportedIndicatorIds = [];
|
|
717
|
-
do {
|
|
718
|
-
const supportedResponse = await api.getSupported(curId);
|
|
719
|
-
if (!supportedResponse) {
|
|
720
|
-
ctx.logNode(node.id, {
|
|
721
|
-
endpoint: this.endpointIndex,
|
|
722
|
-
message: "Time out while scanning supported indicator IDs, skipping interview...",
|
|
723
|
-
level: "warn",
|
|
724
|
-
});
|
|
725
|
-
return;
|
|
726
|
-
}
|
|
727
|
-
supportedIndicatorIds.push(supportedResponse.indicatorId ?? curId);
|
|
728
|
-
curId = supportedResponse.nextIndicatorId;
|
|
729
|
-
} while (curId !== 0x00);
|
|
730
|
-
// The IDs are not stored by the report CCs so store them here once we have all of them
|
|
731
|
-
this.setValue(ctx, exports.IndicatorCCValues.supportedIndicatorIds, supportedIndicatorIds);
|
|
732
|
-
const logMessage = `supported indicator IDs: ${supportedIndicatorIds.join(", ")}`;
|
|
733
|
-
ctx.logNode(node.id, {
|
|
734
|
-
endpoint: this.endpointIndex,
|
|
735
|
-
message: logMessage,
|
|
736
|
-
direction: "inbound",
|
|
737
|
-
});
|
|
738
|
-
if (api.version >= 4) {
|
|
739
|
-
const manufacturerDefinedIndicatorIds = supportedIndicatorIds
|
|
740
|
-
.filter((id) => isManufacturerDefinedIndicator(id));
|
|
741
|
-
if (manufacturerDefinedIndicatorIds.length > 0) {
|
|
742
|
-
ctx.logNode(node.id, {
|
|
743
|
-
endpoint: this.endpointIndex,
|
|
744
|
-
message: "retrieving description for manufacturer-defined indicator IDs...",
|
|
745
|
-
direction: "outbound",
|
|
746
|
-
});
|
|
747
|
-
for (const id of manufacturerDefinedIndicatorIds) {
|
|
748
|
-
await api.getDescription(id);
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
// Query current values
|
|
754
|
-
await this.refreshValues(ctx);
|
|
755
|
-
// Remember that the interview is complete
|
|
756
|
-
this.setInterviewComplete(ctx, true);
|
|
757
|
-
}
|
|
758
|
-
async refreshValues(ctx) {
|
|
759
|
-
const node = this.getNode(ctx);
|
|
760
|
-
const endpoint = this.getEndpoint(ctx);
|
|
761
|
-
const api = API_1.CCAPI.create(safe_1.CommandClasses.Indicator, ctx, endpoint).withOptions({
|
|
762
|
-
priority: safe_1.MessagePriority.NodeQuery,
|
|
763
|
-
});
|
|
764
|
-
if (api.version === 1) {
|
|
765
|
-
ctx.logNode(node.id, {
|
|
766
|
-
endpoint: this.endpointIndex,
|
|
767
|
-
message: "requesting current indicator value...",
|
|
768
|
-
direction: "outbound",
|
|
769
|
-
});
|
|
770
|
-
await api.get();
|
|
771
|
-
}
|
|
772
|
-
else {
|
|
773
|
-
const supportedIndicatorIds = this.getValue(ctx, exports.IndicatorCCValues.supportedIndicatorIds) ?? [];
|
|
774
|
-
for (const indicatorId of supportedIndicatorIds) {
|
|
775
|
-
ctx.logNode(node.id, {
|
|
776
|
-
endpoint: this.endpointIndex,
|
|
777
|
-
message: `requesting current indicator value (id = ${(0, safe_3.num2hex)(indicatorId)})...`,
|
|
778
|
-
direction: "outbound",
|
|
779
|
-
});
|
|
780
|
-
await api.get(indicatorId);
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
translatePropertyKey(ctx, property, propertyKey) {
|
|
785
|
-
if (property === "value") {
|
|
786
|
-
// CC version 1 only has a single value that doesn't need to be translated
|
|
787
|
-
return undefined;
|
|
788
|
-
}
|
|
789
|
-
else if (typeof property === "number"
|
|
790
|
-
&& typeof propertyKey === "number") {
|
|
791
|
-
// The indicator property is our property key
|
|
792
|
-
const prop = (0, safe_1.getIndicatorProperty)(propertyKey);
|
|
793
|
-
if (prop)
|
|
794
|
-
return prop.label;
|
|
795
|
-
}
|
|
796
|
-
return super.translatePropertyKey(ctx, property, propertyKey);
|
|
797
|
-
}
|
|
798
|
-
translateProperty(ctx, property, propertyKey) {
|
|
799
|
-
if (typeof property === "number" && typeof propertyKey === "number") {
|
|
800
|
-
// The indicator corresponds to our property
|
|
801
|
-
if (property in safe_1.Indicator)
|
|
802
|
-
return safe_1.Indicator[property];
|
|
803
|
-
}
|
|
804
|
-
return super.translateProperty(ctx, property, propertyKey);
|
|
805
|
-
}
|
|
806
|
-
supportsV2Indicators(ctx) {
|
|
807
|
-
// First test if there are any indicator ids defined
|
|
808
|
-
const supportedIndicatorIds = this.getValue(ctx, exports.IndicatorCCValues.supportedIndicatorIds);
|
|
809
|
-
if (!supportedIndicatorIds?.length)
|
|
810
|
-
return false;
|
|
811
|
-
// Then test if there are any property ids defined
|
|
812
|
-
return supportedIndicatorIds.some((indicatorId) => !!this.getValue(ctx, exports.IndicatorCCValues.supportedPropertyIDs(indicatorId))?.length);
|
|
813
|
-
}
|
|
814
|
-
static getSupportedPropertyIDsCached(ctx, endpoint, indicatorId) {
|
|
815
|
-
return ctx
|
|
816
|
-
.getValueDB(endpoint.nodeId)
|
|
817
|
-
.getValue(exports.IndicatorCCValues.supportedPropertyIDs(indicatorId).endpoint(endpoint.index));
|
|
818
|
-
}
|
|
819
|
-
};
|
|
820
|
-
exports.IndicatorCC = IndicatorCC;
|
|
821
|
-
exports.IndicatorCC = IndicatorCC = __decorate([
|
|
822
|
-
(0, CommandClassDecorators_1.commandClass)(safe_1.CommandClasses.Indicator),
|
|
823
|
-
(0, CommandClassDecorators_1.implementedVersion)(4),
|
|
824
|
-
(0, CommandClassDecorators_1.ccValues)(exports.IndicatorCCValues)
|
|
825
|
-
], IndicatorCC);
|
|
826
|
-
let IndicatorCCSet = IndicatorCCSet_1 = class IndicatorCCSet extends IndicatorCC {
|
|
827
|
-
constructor(options) {
|
|
828
|
-
super(options);
|
|
829
|
-
if ("value" in options) {
|
|
830
|
-
this.indicator0Value = options.value;
|
|
831
|
-
}
|
|
832
|
-
else {
|
|
833
|
-
this.values = options.values;
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
static from(raw, ctx) {
|
|
837
|
-
(0, safe_1.validatePayload)(raw.payload.length >= 1);
|
|
838
|
-
const objCount = raw.payload.length >= 2
|
|
839
|
-
? raw.payload[1] & 0b11111
|
|
840
|
-
: 0;
|
|
841
|
-
if (objCount === 0) {
|
|
842
|
-
const indicator0Value = raw.payload[0];
|
|
843
|
-
return new IndicatorCCSet_1({
|
|
844
|
-
nodeId: ctx.sourceNodeId,
|
|
845
|
-
value: indicator0Value,
|
|
846
|
-
});
|
|
847
|
-
}
|
|
848
|
-
(0, safe_1.validatePayload)(raw.payload.length >= 2 + 3 * objCount);
|
|
849
|
-
const values = [];
|
|
850
|
-
for (let i = 0; i < objCount; i++) {
|
|
851
|
-
const offset = 2 + 3 * i;
|
|
852
|
-
const value = {
|
|
853
|
-
indicatorId: raw.payload[offset],
|
|
854
|
-
propertyId: raw.payload[offset + 1],
|
|
855
|
-
value: raw.payload[offset + 2],
|
|
856
|
-
};
|
|
857
|
-
values.push(value);
|
|
858
|
-
}
|
|
859
|
-
return new IndicatorCCSet_1({
|
|
860
|
-
nodeId: ctx.sourceNodeId,
|
|
861
|
-
values,
|
|
862
|
-
});
|
|
863
|
-
}
|
|
864
|
-
indicator0Value;
|
|
865
|
-
values;
|
|
866
|
-
serialize(ctx) {
|
|
867
|
-
if (this.values != undefined) {
|
|
868
|
-
// V2+
|
|
869
|
-
this.payload = safe_2.Bytes.alloc(2 + 3 * this.values.length, 0);
|
|
870
|
-
// Byte 0 is the legacy value
|
|
871
|
-
const objCount = this.values.length & MAX_INDICATOR_OBJECTS;
|
|
872
|
-
this.payload[1] = objCount;
|
|
873
|
-
for (let i = 0; i < objCount; i++) {
|
|
874
|
-
const offset = 2 + 3 * i;
|
|
875
|
-
this.payload[offset] = this.values[i].indicatorId;
|
|
876
|
-
this.payload[offset + 1] = this.values[i].propertyId;
|
|
877
|
-
const value = this.values[i].value;
|
|
878
|
-
this.payload[offset + 2] = value === true
|
|
879
|
-
? 0xff
|
|
880
|
-
: value === false
|
|
881
|
-
? 0x00
|
|
882
|
-
: value;
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
else {
|
|
886
|
-
// V1
|
|
887
|
-
this.payload = safe_2.Bytes.from([this.indicator0Value ?? 0]);
|
|
888
|
-
}
|
|
889
|
-
return super.serialize(ctx);
|
|
890
|
-
}
|
|
891
|
-
toLogEntry(ctx) {
|
|
892
|
-
const message = {};
|
|
893
|
-
if (this.indicator0Value != undefined) {
|
|
894
|
-
message["indicator 0 value"] = this.indicator0Value;
|
|
895
|
-
}
|
|
896
|
-
if (this.values != undefined) {
|
|
897
|
-
message.values = `${this.values
|
|
898
|
-
.map((v) => `
|
|
899
|
-
· indicatorId: ${v.indicatorId}
|
|
900
|
-
propertyId: ${v.propertyId}
|
|
901
|
-
value: ${v.value}`)
|
|
902
|
-
.join("")}`;
|
|
903
|
-
}
|
|
904
|
-
return {
|
|
905
|
-
...super.toLogEntry(ctx),
|
|
906
|
-
message,
|
|
907
|
-
};
|
|
908
|
-
}
|
|
909
|
-
};
|
|
910
|
-
exports.IndicatorCCSet = IndicatorCCSet;
|
|
911
|
-
exports.IndicatorCCSet = IndicatorCCSet = IndicatorCCSet_1 = __decorate([
|
|
912
|
-
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IndicatorCommand.Set),
|
|
913
|
-
(0, CommandClassDecorators_1.useSupervision)()
|
|
914
|
-
], IndicatorCCSet);
|
|
915
|
-
let IndicatorCCReport = IndicatorCCReport_1 = class IndicatorCCReport extends IndicatorCC {
|
|
916
|
-
constructor(options) {
|
|
917
|
-
super(options);
|
|
918
|
-
if ("value" in options) {
|
|
919
|
-
this.indicator0Value = options.value;
|
|
920
|
-
}
|
|
921
|
-
else if ("values" in options) {
|
|
922
|
-
if (options.values.length > MAX_INDICATOR_OBJECTS) {
|
|
923
|
-
throw new safe_1.ZWaveError(`Only ${MAX_INDICATOR_OBJECTS} indicator values can be set at a time!`, safe_1.ZWaveErrorCodes.Argument_Invalid);
|
|
924
|
-
}
|
|
925
|
-
this.values = options.values;
|
|
926
|
-
}
|
|
927
|
-
}
|
|
928
|
-
static from(raw, ctx) {
|
|
929
|
-
(0, safe_1.validatePayload)(raw.payload.length >= 1);
|
|
930
|
-
const objCount = raw.payload.length >= 2
|
|
931
|
-
? raw.payload[1] & 0b11111
|
|
932
|
-
: 0;
|
|
933
|
-
if (objCount === 0) {
|
|
934
|
-
const indicator0Value = raw.payload[0];
|
|
935
|
-
return new IndicatorCCReport_1({
|
|
936
|
-
nodeId: ctx.sourceNodeId,
|
|
937
|
-
value: indicator0Value,
|
|
938
|
-
});
|
|
939
|
-
}
|
|
940
|
-
(0, safe_1.validatePayload)(raw.payload.length >= 2 + 3 * objCount);
|
|
941
|
-
const values = [];
|
|
942
|
-
for (let i = 0; i < objCount; i++) {
|
|
943
|
-
const offset = 2 + 3 * i;
|
|
944
|
-
const value = {
|
|
945
|
-
indicatorId: raw.payload[offset],
|
|
946
|
-
propertyId: raw.payload[offset + 1],
|
|
947
|
-
value: raw.payload[offset + 2],
|
|
948
|
-
};
|
|
949
|
-
values.push(value);
|
|
950
|
-
}
|
|
951
|
-
return new IndicatorCCReport_1({
|
|
952
|
-
nodeId: ctx.sourceNodeId,
|
|
953
|
-
values,
|
|
954
|
-
});
|
|
955
|
-
// TODO: Think if we want this:
|
|
956
|
-
// // If not all Property IDs are included in the command for the actual Indicator ID,
|
|
957
|
-
// // a controlling node MUST assume non-specified Property IDs values to be 0x00.
|
|
958
|
-
// const indicatorId = this.values[0].indicatorId;
|
|
959
|
-
// const supportedIndicatorProperties =
|
|
960
|
-
// valueDB.getValue<number[]>(
|
|
961
|
-
// getSupportedPropertyIDsValueID(
|
|
962
|
-
// this.endpointIndex,
|
|
963
|
-
// indicatorId,
|
|
964
|
-
// ),
|
|
965
|
-
// ) ?? [];
|
|
966
|
-
// // Find out which ones are missing
|
|
967
|
-
// const missingIndicatorProperties = supportedIndicatorProperties.filter(
|
|
968
|
-
// prop =>
|
|
969
|
-
// !this.values!.find(({ propertyId }) => prop === propertyId),
|
|
970
|
-
// );
|
|
971
|
-
// // And assume they are 0 (false)
|
|
972
|
-
// for (const missing of missingIndicatorProperties) {
|
|
973
|
-
// this.setIndicatorValue({
|
|
974
|
-
// indicatorId,
|
|
975
|
-
// propertyId: missing,
|
|
976
|
-
// value: 0,
|
|
977
|
-
// });
|
|
978
|
-
// }
|
|
979
|
-
}
|
|
980
|
-
persistValues(ctx) {
|
|
981
|
-
if (!super.persistValues(ctx))
|
|
982
|
-
return false;
|
|
983
|
-
if (this.indicator0Value != undefined) {
|
|
984
|
-
if (!this.supportsV2Indicators(ctx)) {
|
|
985
|
-
// Publish the value
|
|
986
|
-
const valueV1 = exports.IndicatorCCValues.valueV1;
|
|
987
|
-
this.setMetadata(ctx, valueV1);
|
|
988
|
-
this.setValue(ctx, valueV1, this.indicator0Value);
|
|
989
|
-
}
|
|
990
|
-
else {
|
|
991
|
-
if (this.isSinglecast()) {
|
|
992
|
-
// Don't!
|
|
993
|
-
ctx.logNode(this.nodeId, {
|
|
994
|
-
message: `ignoring V1 indicator report because the node supports V2 indicators`,
|
|
995
|
-
direction: "none",
|
|
996
|
-
endpoint: this.endpointIndex,
|
|
997
|
-
});
|
|
998
|
-
}
|
|
999
|
-
}
|
|
1000
|
-
}
|
|
1001
|
-
else if (this.values) {
|
|
1002
|
-
// Store the simple values first
|
|
1003
|
-
for (const value of this.values) {
|
|
1004
|
-
this.setIndicatorValue(ctx, value);
|
|
1005
|
-
}
|
|
1006
|
-
// Then group values into the convenience properties
|
|
1007
|
-
// ... timeout
|
|
1008
|
-
const timeout = indicatorObjectsToTimeout(this.values);
|
|
1009
|
-
if (timeout) {
|
|
1010
|
-
let timeoutString = "";
|
|
1011
|
-
if (timeout?.hours)
|
|
1012
|
-
timeoutString += `${timeout.hours}h`;
|
|
1013
|
-
if (timeout?.minutes)
|
|
1014
|
-
timeoutString += `${timeout.minutes}m`;
|
|
1015
|
-
if (timeout?.seconds)
|
|
1016
|
-
timeoutString += `${timeout.seconds}s`;
|
|
1017
|
-
this.setValue(ctx, exports.IndicatorCCValues.timeout, timeoutString);
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
return true;
|
|
1021
|
-
}
|
|
1022
|
-
indicator0Value;
|
|
1023
|
-
values;
|
|
1024
|
-
setIndicatorValue(ctx, value) {
|
|
1025
|
-
// Manufacturer-defined indicators may need a custom label
|
|
1026
|
-
const overrideIndicatorLabel = isManufacturerDefinedIndicator(value.indicatorId)
|
|
1027
|
-
? this.getValue(ctx, exports.IndicatorCCValues.indicatorDescription(value.indicatorId))
|
|
1028
|
-
: undefined;
|
|
1029
|
-
const metadata = getIndicatorMetadata(value.indicatorId, value.propertyId, overrideIndicatorLabel);
|
|
1030
|
-
// Some values need to be converted
|
|
1031
|
-
if (metadata.type === "boolean") {
|
|
1032
|
-
value.value = !!value.value;
|
|
1033
|
-
}
|
|
1034
|
-
// Publish the value
|
|
1035
|
-
const valueV2 = exports.IndicatorCCValues.valueV2(value.indicatorId, value.propertyId);
|
|
1036
|
-
this.setMetadata(ctx, valueV2, metadata);
|
|
1037
|
-
this.setValue(ctx, valueV2, value.value);
|
|
1038
|
-
}
|
|
1039
|
-
serialize(ctx) {
|
|
1040
|
-
if (this.values != undefined) {
|
|
1041
|
-
// V2+
|
|
1042
|
-
this.payload = safe_2.Bytes.alloc(2 + 3 * this.values.length, 0);
|
|
1043
|
-
// Byte 0 is the legacy value
|
|
1044
|
-
const objCount = this.values.length & MAX_INDICATOR_OBJECTS;
|
|
1045
|
-
this.payload[1] = objCount;
|
|
1046
|
-
for (let i = 0; i < objCount; i++) {
|
|
1047
|
-
const offset = 2 + 3 * i;
|
|
1048
|
-
this.payload[offset] = this.values[i].indicatorId;
|
|
1049
|
-
this.payload[offset + 1] = this.values[i].propertyId;
|
|
1050
|
-
const value = this.values[i].value;
|
|
1051
|
-
this.payload[offset + 2] = value === true
|
|
1052
|
-
? 0xff
|
|
1053
|
-
: value === false
|
|
1054
|
-
? 0x00
|
|
1055
|
-
: value;
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
else {
|
|
1059
|
-
// V1
|
|
1060
|
-
this.payload = safe_2.Bytes.from([this.indicator0Value ?? 0]);
|
|
1061
|
-
}
|
|
1062
|
-
return super.serialize(ctx);
|
|
1063
|
-
}
|
|
1064
|
-
toLogEntry(ctx) {
|
|
1065
|
-
const message = {};
|
|
1066
|
-
if (this.indicator0Value != undefined) {
|
|
1067
|
-
message["indicator 0 value"] = this.indicator0Value;
|
|
1068
|
-
}
|
|
1069
|
-
if (this.values != undefined) {
|
|
1070
|
-
message.values = `${this.values
|
|
1071
|
-
.map((v) => `
|
|
1072
|
-
· indicatorId: ${v.indicatorId}
|
|
1073
|
-
propertyId: ${v.propertyId}
|
|
1074
|
-
value: ${v.value}`)
|
|
1075
|
-
.join("")}`;
|
|
1076
|
-
}
|
|
1077
|
-
return {
|
|
1078
|
-
...super.toLogEntry(ctx),
|
|
1079
|
-
message,
|
|
1080
|
-
};
|
|
1081
|
-
}
|
|
1082
|
-
};
|
|
1083
|
-
exports.IndicatorCCReport = IndicatorCCReport;
|
|
1084
|
-
exports.IndicatorCCReport = IndicatorCCReport = IndicatorCCReport_1 = __decorate([
|
|
1085
|
-
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IndicatorCommand.Report)
|
|
1086
|
-
], IndicatorCCReport);
|
|
1087
|
-
let IndicatorCCGet = IndicatorCCGet_1 = class IndicatorCCGet extends IndicatorCC {
|
|
1088
|
-
constructor(options) {
|
|
1089
|
-
super(options);
|
|
1090
|
-
this.indicatorId = options.indicatorId;
|
|
1091
|
-
}
|
|
1092
|
-
static from(raw, ctx) {
|
|
1093
|
-
let indicatorId;
|
|
1094
|
-
if (raw.payload.length > 0) {
|
|
1095
|
-
indicatorId = raw.payload[0];
|
|
1096
|
-
}
|
|
1097
|
-
return new IndicatorCCGet_1({
|
|
1098
|
-
nodeId: ctx.sourceNodeId,
|
|
1099
|
-
indicatorId,
|
|
1100
|
-
});
|
|
1101
|
-
}
|
|
1102
|
-
indicatorId;
|
|
1103
|
-
serialize(ctx) {
|
|
1104
|
-
if (this.indicatorId != undefined) {
|
|
1105
|
-
this.payload = safe_2.Bytes.from([this.indicatorId]);
|
|
1106
|
-
}
|
|
1107
|
-
return super.serialize(ctx);
|
|
1108
|
-
}
|
|
1109
|
-
toLogEntry(ctx) {
|
|
1110
|
-
return {
|
|
1111
|
-
...super.toLogEntry(ctx),
|
|
1112
|
-
message: {
|
|
1113
|
-
indicator: getIndicatorName(this.indicatorId),
|
|
1114
|
-
},
|
|
1115
|
-
};
|
|
1116
|
-
}
|
|
1117
|
-
};
|
|
1118
|
-
exports.IndicatorCCGet = IndicatorCCGet;
|
|
1119
|
-
exports.IndicatorCCGet = IndicatorCCGet = IndicatorCCGet_1 = __decorate([
|
|
1120
|
-
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IndicatorCommand.Get),
|
|
1121
|
-
(0, CommandClassDecorators_1.expectedCCResponse)(IndicatorCCReport)
|
|
1122
|
-
], IndicatorCCGet);
|
|
1123
|
-
let IndicatorCCSupportedReport = IndicatorCCSupportedReport_1 = class IndicatorCCSupportedReport extends IndicatorCC {
|
|
1124
|
-
constructor(options) {
|
|
1125
|
-
super(options);
|
|
1126
|
-
this.indicatorId = options.indicatorId;
|
|
1127
|
-
this.nextIndicatorId = options.nextIndicatorId;
|
|
1128
|
-
this.supportedProperties = options.supportedProperties;
|
|
1129
|
-
}
|
|
1130
|
-
static from(raw, ctx) {
|
|
1131
|
-
(0, safe_1.validatePayload)(raw.payload.length >= 3);
|
|
1132
|
-
const indicatorId = raw.payload[0];
|
|
1133
|
-
const nextIndicatorId = raw.payload[1];
|
|
1134
|
-
const bitMaskLength = raw.payload[2] & 0b11111;
|
|
1135
|
-
let supportedProperties;
|
|
1136
|
-
if (bitMaskLength === 0) {
|
|
1137
|
-
supportedProperties = [];
|
|
1138
|
-
}
|
|
1139
|
-
else {
|
|
1140
|
-
(0, safe_1.validatePayload)(raw.payload.length >= 3 + bitMaskLength);
|
|
1141
|
-
// The bit mask starts at 0, but bit 0 is not used
|
|
1142
|
-
supportedProperties = (0, safe_1.parseBitMask)(raw.payload.subarray(3, 3 + bitMaskLength), 0).filter((v) => v !== 0);
|
|
1143
|
-
}
|
|
1144
|
-
return new IndicatorCCSupportedReport_1({
|
|
1145
|
-
nodeId: ctx.sourceNodeId,
|
|
1146
|
-
indicatorId,
|
|
1147
|
-
nextIndicatorId,
|
|
1148
|
-
supportedProperties,
|
|
1149
|
-
});
|
|
1150
|
-
}
|
|
1151
|
-
persistValues(ctx) {
|
|
1152
|
-
if (!super.persistValues(ctx))
|
|
1153
|
-
return false;
|
|
1154
|
-
if (this.indicatorId !== 0x00) {
|
|
1155
|
-
// Remember which property IDs are supported
|
|
1156
|
-
this.setValue(ctx, exports.IndicatorCCValues.supportedPropertyIDs(this.indicatorId), this.supportedProperties);
|
|
1157
|
-
}
|
|
1158
|
-
return true;
|
|
1159
|
-
}
|
|
1160
|
-
indicatorId;
|
|
1161
|
-
nextIndicatorId;
|
|
1162
|
-
supportedProperties;
|
|
1163
|
-
serialize(ctx) {
|
|
1164
|
-
const bitmask = this.supportedProperties.length > 0
|
|
1165
|
-
? (0, safe_1.encodeBitMask)(this.supportedProperties, undefined, 0)
|
|
1166
|
-
: new safe_2.Bytes();
|
|
1167
|
-
this.payload = safe_2.Bytes.concat([
|
|
1168
|
-
safe_2.Bytes.from([
|
|
1169
|
-
this.indicatorId,
|
|
1170
|
-
this.nextIndicatorId,
|
|
1171
|
-
bitmask.length,
|
|
1172
|
-
]),
|
|
1173
|
-
bitmask,
|
|
1174
|
-
]);
|
|
1175
|
-
return super.serialize(ctx);
|
|
1176
|
-
}
|
|
1177
|
-
toLogEntry(ctx) {
|
|
1178
|
-
return {
|
|
1179
|
-
...super.toLogEntry(ctx),
|
|
1180
|
-
message: {
|
|
1181
|
-
indicator: getIndicatorName(this.indicatorId),
|
|
1182
|
-
"supported properties": `${this.supportedProperties
|
|
1183
|
-
.map((id) => (0, safe_1.getIndicatorProperty)(id)?.label
|
|
1184
|
-
?? `Unknown (${(0, safe_3.num2hex)(id)})`)
|
|
1185
|
-
.join(", ")}`,
|
|
1186
|
-
"next indicator": getIndicatorName(this.nextIndicatorId),
|
|
1187
|
-
},
|
|
1188
|
-
};
|
|
1189
|
-
}
|
|
1190
|
-
};
|
|
1191
|
-
exports.IndicatorCCSupportedReport = IndicatorCCSupportedReport;
|
|
1192
|
-
exports.IndicatorCCSupportedReport = IndicatorCCSupportedReport = IndicatorCCSupportedReport_1 = __decorate([
|
|
1193
|
-
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IndicatorCommand.SupportedReport)
|
|
1194
|
-
], IndicatorCCSupportedReport);
|
|
1195
|
-
function testResponseForIndicatorSupportedGet(sent, received) {
|
|
1196
|
-
return sent.indicatorId === 0 || received.indicatorId === sent.indicatorId;
|
|
1197
|
-
}
|
|
1198
|
-
let IndicatorCCSupportedGet = IndicatorCCSupportedGet_1 = class IndicatorCCSupportedGet extends IndicatorCC {
|
|
1199
|
-
constructor(options) {
|
|
1200
|
-
super(options);
|
|
1201
|
-
this.indicatorId = options.indicatorId;
|
|
1202
|
-
}
|
|
1203
|
-
static from(raw, ctx) {
|
|
1204
|
-
(0, safe_1.validatePayload)(raw.payload.length >= 1);
|
|
1205
|
-
const indicatorId = raw.payload[0];
|
|
1206
|
-
return new IndicatorCCSupportedGet_1({
|
|
1207
|
-
nodeId: ctx.sourceNodeId,
|
|
1208
|
-
indicatorId,
|
|
1209
|
-
});
|
|
1210
|
-
}
|
|
1211
|
-
indicatorId;
|
|
1212
|
-
serialize(ctx) {
|
|
1213
|
-
this.payload = safe_2.Bytes.from([this.indicatorId]);
|
|
1214
|
-
return super.serialize(ctx);
|
|
1215
|
-
}
|
|
1216
|
-
toLogEntry(ctx) {
|
|
1217
|
-
return {
|
|
1218
|
-
...super.toLogEntry(ctx),
|
|
1219
|
-
message: {
|
|
1220
|
-
indicator: getIndicatorName(this.indicatorId),
|
|
1221
|
-
},
|
|
1222
|
-
};
|
|
1223
|
-
}
|
|
1224
|
-
};
|
|
1225
|
-
exports.IndicatorCCSupportedGet = IndicatorCCSupportedGet;
|
|
1226
|
-
exports.IndicatorCCSupportedGet = IndicatorCCSupportedGet = IndicatorCCSupportedGet_1 = __decorate([
|
|
1227
|
-
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IndicatorCommand.SupportedGet),
|
|
1228
|
-
(0, CommandClassDecorators_1.expectedCCResponse)(IndicatorCCSupportedReport, testResponseForIndicatorSupportedGet)
|
|
1229
|
-
], IndicatorCCSupportedGet);
|
|
1230
|
-
let IndicatorCCDescriptionReport = IndicatorCCDescriptionReport_1 = class IndicatorCCDescriptionReport extends IndicatorCC {
|
|
1231
|
-
constructor(options) {
|
|
1232
|
-
super(options);
|
|
1233
|
-
this.indicatorId = options.indicatorId;
|
|
1234
|
-
this.description = options.description;
|
|
1235
|
-
}
|
|
1236
|
-
static from(raw, ctx) {
|
|
1237
|
-
(0, safe_1.validatePayload)(raw.payload.length >= 2);
|
|
1238
|
-
const indicatorId = raw.payload[0];
|
|
1239
|
-
const descrptionLength = raw.payload[1];
|
|
1240
|
-
(0, safe_1.validatePayload)(raw.payload.length >= 2 + descrptionLength);
|
|
1241
|
-
const description = raw.payload
|
|
1242
|
-
.subarray(2, 2 + descrptionLength)
|
|
1243
|
-
.toString("utf8");
|
|
1244
|
-
return new IndicatorCCDescriptionReport_1({
|
|
1245
|
-
nodeId: ctx.sourceNodeId,
|
|
1246
|
-
indicatorId,
|
|
1247
|
-
description,
|
|
1248
|
-
});
|
|
1249
|
-
}
|
|
1250
|
-
indicatorId;
|
|
1251
|
-
description;
|
|
1252
|
-
persistValues(ctx) {
|
|
1253
|
-
if (!super.persistValues(ctx))
|
|
1254
|
-
return false;
|
|
1255
|
-
if (this.description) {
|
|
1256
|
-
this.setValue(ctx, exports.IndicatorCCValues.indicatorDescription(this.indicatorId), this.description);
|
|
1257
|
-
}
|
|
1258
|
-
return true;
|
|
1259
|
-
}
|
|
1260
|
-
serialize(ctx) {
|
|
1261
|
-
const description = safe_2.Bytes.from(this.description, "utf8");
|
|
1262
|
-
this.payload = safe_2.Bytes.concat([
|
|
1263
|
-
safe_2.Bytes.from([this.indicatorId, description.length]),
|
|
1264
|
-
description,
|
|
1265
|
-
]);
|
|
1266
|
-
return super.serialize(ctx);
|
|
1267
|
-
}
|
|
1268
|
-
toLogEntry(ctx) {
|
|
1269
|
-
return {
|
|
1270
|
-
...super.toLogEntry(ctx),
|
|
1271
|
-
message: {
|
|
1272
|
-
"indicator ID": this.indicatorId,
|
|
1273
|
-
description: this.description || "(none)",
|
|
1274
|
-
},
|
|
1275
|
-
};
|
|
1276
|
-
}
|
|
1277
|
-
};
|
|
1278
|
-
exports.IndicatorCCDescriptionReport = IndicatorCCDescriptionReport;
|
|
1279
|
-
exports.IndicatorCCDescriptionReport = IndicatorCCDescriptionReport = IndicatorCCDescriptionReport_1 = __decorate([
|
|
1280
|
-
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IndicatorCommand.DescriptionReport)
|
|
1281
|
-
], IndicatorCCDescriptionReport);
|
|
1282
|
-
function testResponseForIndicatorDescriptionGet(sent, received) {
|
|
1283
|
-
return received.indicatorId === sent.indicatorId;
|
|
1284
|
-
}
|
|
1285
|
-
let IndicatorCCDescriptionGet = IndicatorCCDescriptionGet_1 = class IndicatorCCDescriptionGet extends IndicatorCC {
|
|
1286
|
-
constructor(options) {
|
|
1287
|
-
super(options);
|
|
1288
|
-
this.indicatorId = options.indicatorId;
|
|
1289
|
-
if (!isManufacturerDefinedIndicator(this.indicatorId)) {
|
|
1290
|
-
throw new safe_1.ZWaveError("The indicator ID must be between 0x80 and 0x9f", safe_1.ZWaveErrorCodes.Argument_Invalid);
|
|
1291
|
-
}
|
|
1292
|
-
}
|
|
1293
|
-
static from(raw, ctx) {
|
|
1294
|
-
(0, safe_1.validatePayload)(raw.payload.length >= 1);
|
|
1295
|
-
const indicatorId = raw.payload[0];
|
|
1296
|
-
return new IndicatorCCDescriptionGet_1({
|
|
1297
|
-
nodeId: ctx.sourceNodeId,
|
|
1298
|
-
indicatorId,
|
|
1299
|
-
});
|
|
1300
|
-
}
|
|
1301
|
-
indicatorId;
|
|
1302
|
-
serialize(ctx) {
|
|
1303
|
-
this.payload = safe_2.Bytes.from([this.indicatorId]);
|
|
1304
|
-
return super.serialize(ctx);
|
|
1305
|
-
}
|
|
1306
|
-
toLogEntry(ctx) {
|
|
1307
|
-
return {
|
|
1308
|
-
...super.toLogEntry(ctx),
|
|
1309
|
-
message: {
|
|
1310
|
-
"indicator ID": this.indicatorId,
|
|
1311
|
-
},
|
|
1312
|
-
};
|
|
1313
|
-
}
|
|
1314
|
-
};
|
|
1315
|
-
exports.IndicatorCCDescriptionGet = IndicatorCCDescriptionGet;
|
|
1316
|
-
exports.IndicatorCCDescriptionGet = IndicatorCCDescriptionGet = IndicatorCCDescriptionGet_1 = __decorate([
|
|
1317
|
-
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IndicatorCommand.DescriptionGet),
|
|
1318
|
-
(0, CommandClassDecorators_1.expectedCCResponse)(IndicatorCCDescriptionReport, testResponseForIndicatorDescriptionGet)
|
|
1319
|
-
], IndicatorCCDescriptionGet);
|
|
1320
|
-
//# sourceMappingURL=IndicatorCC.js.map
|