@zwave-js/cc 14.0.0-beta.1 → 14.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/cc/AlarmSensorCC.d.ts +194 -0
- package/build/cjs/cc/AlarmSensorCC.js +395 -0
- package/build/cjs/cc/AlarmSensorCC.js.map +7 -0
- package/build/cjs/cc/AssociationCC.d.ts +253 -0
- package/build/cjs/cc/AssociationCC.js +711 -0
- package/build/cjs/cc/AssociationCC.js.map +7 -0
- package/build/cjs/cc/AssociationGroupInfoCC.d.ts +230 -0
- package/build/cjs/cc/AssociationGroupInfoCC.js +746 -0
- package/build/cjs/cc/AssociationGroupInfoCC.js.map +7 -0
- package/build/cjs/cc/BarrierOperatorCC.d.ts +243 -0
- package/build/cjs/cc/BarrierOperatorCC.js +582 -0
- package/build/cjs/cc/BarrierOperatorCC.js.map +7 -0
- package/build/cjs/cc/BasicCC.d.ts +191 -0
- package/build/cjs/cc/BasicCC.js +384 -0
- package/build/cjs/cc/BasicCC.js.map +7 -0
- package/build/cjs/cc/BatteryCC.d.ts +406 -0
- package/build/cjs/cc/BatteryCC.js +508 -0
- package/build/cjs/cc/BatteryCC.js.map +7 -0
- package/build/cjs/cc/BinarySensorCC.d.ts +122 -0
- package/build/cjs/cc/BinarySensorCC.js +431 -0
- package/build/cjs/cc/BinarySensorCC.js.map +7 -0
- package/build/cjs/cc/BinarySwitchCC.d.ts +139 -0
- package/build/cjs/cc/BinarySwitchCC.js +378 -0
- package/build/cjs/cc/BinarySwitchCC.js.map +7 -0
- package/build/cjs/cc/CRC16CC.d.ts +29 -0
- package/build/cjs/cc/CRC16CC.js +133 -0
- package/build/cjs/cc/CRC16CC.js.map +7 -0
- package/build/cjs/cc/CentralSceneCC.d.ts +210 -0
- package/build/cjs/cc/CentralSceneCC.js +449 -0
- package/build/cjs/cc/CentralSceneCC.js.map +7 -0
- package/build/cjs/cc/ClimateControlScheduleCC.d.ts +177 -0
- package/build/cjs/cc/ClimateControlScheduleCC.js +480 -0
- package/build/cjs/cc/ClimateControlScheduleCC.js.map +7 -0
- package/build/cjs/cc/ClockCC.d.ts +47 -0
- package/build/cjs/cc/ClockCC.js +226 -0
- package/build/cjs/cc/ClockCC.js.map +7 -0
- package/build/cjs/cc/ColorSwitchCC.d.ts +339 -0
- package/build/cjs/cc/ColorSwitchCC.js +1117 -0
- package/build/cjs/cc/ColorSwitchCC.js.map +7 -0
- package/build/cjs/cc/ConfigurationCC.d.ts +396 -0
- package/build/cjs/cc/ConfigurationCC.js +2230 -0
- package/build/cjs/cc/ConfigurationCC.js.map +7 -0
- package/build/cjs/cc/DeviceResetLocallyCC.d.ts +17 -0
- package/build/cjs/cc/DeviceResetLocallyCC.js +92 -0
- package/build/cjs/cc/DeviceResetLocallyCC.js.map +7 -0
- package/build/cjs/cc/DoorLockCC.d.ts +837 -0
- package/build/cjs/cc/DoorLockCC.js +1239 -0
- package/build/cjs/cc/DoorLockCC.js.map +7 -0
- package/build/cjs/cc/DoorLockLoggingCC.d.ts +77 -0
- package/build/cjs/cc/DoorLockLoggingCC.js +343 -0
- package/build/cjs/cc/DoorLockLoggingCC.js.map +7 -0
- package/build/cjs/cc/EnergyProductionCC.d.ts +77 -0
- package/build/cjs/cc/EnergyProductionCC.js +240 -0
- package/build/cjs/cc/EnergyProductionCC.js.map +7 -0
- package/build/cjs/cc/EntryControlCC.d.ts +231 -0
- package/build/cjs/cc/EntryControlCC.js +593 -0
- package/build/cjs/cc/EntryControlCC.js.map +7 -0
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.d.ts +359 -0
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +1122 -0
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +7 -0
- package/build/cjs/cc/HailCC.d.ts +6 -0
- package/build/cjs/cc/HailCC.js +45 -0
- package/build/cjs/cc/HailCC.js.map +7 -0
- package/build/cjs/cc/HumidityControlModeCC.d.ts +111 -0
- package/build/cjs/cc/HumidityControlModeCC.js +323 -0
- package/build/cjs/cc/HumidityControlModeCC.js.map +7 -0
- package/build/cjs/cc/HumidityControlOperatingStateCC.d.ts +60 -0
- package/build/cjs/cc/HumidityControlOperatingStateCC.js +164 -0
- package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +7 -0
- package/build/cjs/cc/HumidityControlSetpointCC.d.ts +209 -0
- package/build/cjs/cc/HumidityControlSetpointCC.js +634 -0
- package/build/cjs/cc/HumidityControlSetpointCC.js.map +7 -0
- package/build/cjs/cc/InclusionControllerCC.d.ts +42 -0
- package/build/cjs/cc/InclusionControllerCC.js +160 -0
- package/build/cjs/cc/InclusionControllerCC.js.map +7 -0
- package/build/cjs/cc/IndicatorCC.d.ts +338 -0
- package/build/cjs/cc/IndicatorCC.js +1234 -0
- package/build/cjs/cc/IndicatorCC.js.map +7 -0
- package/build/cjs/cc/IrrigationCC.d.ts +1496 -0
- package/build/cjs/cc/IrrigationCC.js +1978 -0
- package/build/cjs/cc/IrrigationCC.js.map +7 -0
- package/build/cjs/cc/LanguageCC.d.ts +101 -0
- package/build/cjs/cc/LanguageCC.js +267 -0
- package/build/cjs/cc/LanguageCC.js.map +7 -0
- package/build/cjs/cc/LockCC.d.ts +73 -0
- package/build/cjs/cc/LockCC.js +222 -0
- package/build/cjs/cc/LockCC.js.map +7 -0
- package/build/cjs/cc/ManufacturerProprietaryCC.d.ts +32 -0
- package/build/cjs/cc/ManufacturerProprietaryCC.js +209 -0
- package/build/cjs/cc/ManufacturerProprietaryCC.js.map +7 -0
- package/build/cjs/cc/ManufacturerSpecificCC.d.ts +171 -0
- package/build/cjs/cc/ManufacturerSpecificCC.js +334 -0
- package/build/cjs/cc/ManufacturerSpecificCC.js.map +7 -0
- package/build/cjs/cc/MeterCC.d.ts +318 -0
- package/build/cjs/cc/MeterCC.js +1235 -0
- package/build/cjs/cc/MeterCC.js.map +7 -0
- package/build/cjs/cc/MultiChannelAssociationCC.d.ts +241 -0
- package/build/cjs/cc/MultiChannelAssociationCC.js +956 -0
- package/build/cjs/cc/MultiChannelAssociationCC.js.map +7 -0
- package/build/cjs/cc/MultiChannelCC.d.ts +394 -0
- package/build/cjs/cc/MultiChannelCC.js +1050 -0
- package/build/cjs/cc/MultiChannelCC.js.map +7 -0
- package/build/cjs/cc/MultiCommandCC.d.ts +27 -0
- package/build/cjs/cc/MultiCommandCC.js +159 -0
- package/build/cjs/cc/MultiCommandCC.js.map +7 -0
- package/build/cjs/cc/MultilevelSensorCC.d.ts +185 -0
- package/build/cjs/cc/MultilevelSensorCC.js +716 -0
- package/build/cjs/cc/MultilevelSensorCC.js.map +7 -0
- package/build/cjs/cc/MultilevelSwitchCC.d.ts +357 -0
- package/build/cjs/cc/MultilevelSwitchCC.js +780 -0
- package/build/cjs/cc/MultilevelSwitchCC.js.map +7 -0
- package/build/cjs/cc/NoOperationCC.d.ts +9 -0
- package/build/cjs/cc/NoOperationCC.js +64 -0
- package/build/cjs/cc/NoOperationCC.js.map +7 -0
- package/build/cjs/cc/NodeNamingCC.d.ts +118 -0
- package/build/cjs/cc/NodeNamingCC.js +364 -0
- package/build/cjs/cc/NodeNamingCC.js.map +7 -0
- package/build/cjs/cc/NotificationCC.d.ts +479 -0
- package/build/cjs/cc/NotificationCC.js +1245 -0
- package/build/cjs/cc/NotificationCC.js.map +7 -0
- package/build/cjs/cc/PowerlevelCC.d.ts +82 -0
- package/build/cjs/cc/PowerlevelCC.js +510 -0
- package/build/cjs/cc/PowerlevelCC.js.map +7 -0
- package/build/cjs/cc/ProtectionCC.d.ts +325 -0
- package/build/cjs/cc/ProtectionCC.js +667 -0
- package/build/cjs/cc/ProtectionCC.js.map +7 -0
- package/build/cjs/cc/SceneActivationCC.d.ts +89 -0
- package/build/cjs/cc/SceneActivationCC.js +193 -0
- package/build/cjs/cc/SceneActivationCC.js.map +7 -0
- package/build/cjs/cc/SceneActuatorConfigurationCC.d.ts +120 -0
- package/build/cjs/cc/SceneActuatorConfigurationCC.js +370 -0
- package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +7 -0
- package/build/cjs/cc/SceneControllerConfigurationCC.d.ts +129 -0
- package/build/cjs/cc/SceneControllerConfigurationCC.js +423 -0
- package/build/cjs/cc/SceneControllerConfigurationCC.js.map +7 -0
- package/build/cjs/cc/ScheduleEntryLockCC.d.ts +434 -0
- package/build/cjs/cc/ScheduleEntryLockCC.js +1763 -0
- package/build/cjs/cc/ScheduleEntryLockCC.js.map +7 -0
- package/build/cjs/cc/Security2CC.d.ts +251 -0
- package/build/cjs/cc/Security2CC.js +1589 -0
- package/build/cjs/cc/Security2CC.js.map +7 -0
- package/build/cjs/cc/SecurityCC.d.ts +128 -0
- package/build/cjs/cc/SecurityCC.js +757 -0
- package/build/cjs/cc/SecurityCC.js.map +7 -0
- package/build/cjs/cc/SoundSwitchCC.d.ts +232 -0
- package/build/cjs/cc/SoundSwitchCC.js +661 -0
- package/build/cjs/cc/SoundSwitchCC.js.map +7 -0
- package/build/cjs/cc/SupervisionCC.d.ts +104 -0
- package/build/cjs/cc/SupervisionCC.js +308 -0
- package/build/cjs/cc/SupervisionCC.js.map +7 -0
- package/build/cjs/cc/ThermostatFanModeCC.d.ts +141 -0
- package/build/cjs/cc/ThermostatFanModeCC.js +372 -0
- package/build/cjs/cc/ThermostatFanModeCC.js.map +7 -0
- package/build/cjs/cc/ThermostatFanStateCC.d.ts +60 -0
- package/build/cjs/cc/ThermostatFanStateCC.js +166 -0
- package/build/cjs/cc/ThermostatFanStateCC.js.map +7 -0
- package/build/cjs/cc/ThermostatModeCC.d.ts +150 -0
- package/build/cjs/cc/ThermostatModeCC.js +436 -0
- package/build/cjs/cc/ThermostatModeCC.js.map +7 -0
- package/build/cjs/cc/ThermostatOperatingStateCC.d.ts +61 -0
- package/build/cjs/cc/ThermostatOperatingStateCC.js +162 -0
- package/build/cjs/cc/ThermostatOperatingStateCC.js.map +7 -0
- package/build/cjs/cc/ThermostatSetbackCC.d.ts +46 -0
- package/build/cjs/cc/ThermostatSetbackCC.js +262 -0
- package/build/cjs/cc/ThermostatSetbackCC.js.map +7 -0
- package/build/cjs/cc/ThermostatSetpointCC.d.ts +197 -0
- package/build/cjs/cc/ThermostatSetpointCC.js +638 -0
- package/build/cjs/cc/ThermostatSetpointCC.js.map +7 -0
- package/build/cjs/cc/TimeCC.d.ts +88 -0
- package/build/cjs/cc/TimeCC.js +473 -0
- package/build/cjs/cc/TimeCC.js.map +7 -0
- package/build/cjs/cc/TimeParametersCC.d.ts +72 -0
- package/build/cjs/cc/TimeParametersCC.js +313 -0
- package/build/cjs/cc/TimeParametersCC.js.map +7 -0
- package/build/cjs/cc/TransportServiceCC.d.ts +107 -0
- package/build/cjs/cc/TransportServiceCC.js +404 -0
- package/build/cjs/cc/TransportServiceCC.js.map +7 -0
- package/build/cjs/cc/UserCodeCC.d.ts +683 -0
- package/build/cjs/cc/UserCodeCC.js +1620 -0
- package/build/cjs/cc/UserCodeCC.js.map +7 -0
- package/build/cjs/cc/VersionCC.d.ts +469 -0
- package/build/cjs/cc/VersionCC.js +828 -0
- package/build/cjs/cc/VersionCC.js.map +7 -0
- package/build/cjs/cc/WakeUpCC.d.ts +150 -0
- package/build/cjs/cc/WakeUpCC.js +456 -0
- package/build/cjs/cc/WakeUpCC.js.map +7 -0
- package/build/cjs/cc/WindowCoveringCC.d.ts +315 -0
- package/build/cjs/cc/WindowCoveringCC.js +776 -0
- package/build/cjs/cc/WindowCoveringCC.js.map +7 -0
- package/build/cjs/cc/ZWaveLongRangeCC.d.ts +4 -0
- package/build/cjs/cc/ZWaveLongRangeCC.js +43 -0
- package/build/cjs/cc/ZWaveLongRangeCC.js.map +7 -0
- package/build/cjs/cc/ZWavePlusCC.d.ts +163 -0
- package/build/cjs/cc/ZWavePlusCC.js +288 -0
- package/build/cjs/cc/ZWavePlusCC.js.map +7 -0
- package/build/cjs/cc/ZWaveProtocolCC.d.ts +344 -0
- package/build/cjs/cc/ZWaveProtocolCC.js +1071 -0
- package/build/cjs/cc/ZWaveProtocolCC.js.map +7 -0
- package/build/cjs/cc/index.d.ts +132 -0
- package/build/cjs/cc/index.js +1180 -0
- package/build/cjs/cc/index.js.map +7 -0
- package/build/cjs/cc/manufacturerProprietary/Decorators.d.ts +64 -0
- package/build/cjs/cc/manufacturerProprietary/Decorators.js +76 -0
- package/build/cjs/cc/manufacturerProprietary/Decorators.js.map +7 -0
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.d.ts +79 -0
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js +412 -0
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js.map +7 -0
- package/build/cjs/index.d.ts +15 -0
- package/build/cjs/index.js +77 -0
- package/build/cjs/index.js.map +7 -0
- package/build/cjs/index_safe.d.ts +3 -0
- package/build/cjs/index_safe.js +25 -0
- package/build/cjs/index_safe.js.map +7 -0
- package/build/cjs/lib/API.d.ts +271 -0
- package/build/cjs/lib/API.js +413 -0
- package/build/cjs/lib/API.js.map +7 -0
- package/build/cjs/lib/CommandClass.d.ts +234 -0
- package/build/cjs/lib/CommandClass.js +692 -0
- package/build/cjs/lib/CommandClass.js.map +7 -0
- package/build/cjs/lib/CommandClassDecorators.d.ts +112 -0
- package/build/cjs/lib/CommandClassDecorators.js +182 -0
- package/build/cjs/lib/CommandClassDecorators.js.map +7 -0
- package/build/cjs/lib/EncapsulatingCommandClass.d.ts +22 -0
- package/build/cjs/lib/EncapsulatingCommandClass.js +71 -0
- package/build/cjs/lib/EncapsulatingCommandClass.js.map +7 -0
- package/build/cjs/lib/ICommandClassContainer.js +17 -0
- package/build/cjs/lib/ICommandClassContainer.js.map +7 -0
- package/build/cjs/lib/NotificationEventPayload.d.ts +10 -0
- package/build/cjs/lib/NotificationEventPayload.js +31 -0
- package/build/cjs/lib/NotificationEventPayload.js.map +7 -0
- package/build/cjs/lib/Security2/Extension.js +333 -0
- package/build/cjs/lib/Security2/Extension.js.map +7 -0
- package/build/cjs/lib/Security2/shared.js +69 -0
- package/build/cjs/lib/Security2/shared.js.map +7 -0
- package/build/cjs/lib/SetValueResult.js +65 -0
- package/build/cjs/lib/SetValueResult.js.map +7 -0
- package/build/cjs/lib/Values.d.ts +223 -0
- package/build/cjs/lib/Values.js +191 -0
- package/build/cjs/lib/Values.js.map +7 -0
- package/build/cjs/lib/_Types.js +1676 -0
- package/build/cjs/lib/_Types.js.map +7 -0
- package/build/cjs/lib/serializers.d.ts +34 -0
- package/build/cjs/lib/serializers.js +110 -0
- package/build/cjs/lib/serializers.js.map +7 -0
- package/build/cjs/lib/utils.d.ts +17 -0
- package/build/cjs/lib/utils.js +678 -0
- package/build/cjs/lib/utils.js.map +7 -0
- package/build/cjs/package.json +3 -0
- package/build/esm/cc/AlarmSensorCC.d.ts +194 -0
- package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -0
- package/build/esm/cc/AlarmSensorCC.js +392 -0
- package/build/esm/cc/AlarmSensorCC.js.map +1 -0
- package/build/esm/cc/AssociationCC.d.ts +253 -0
- package/build/esm/cc/AssociationCC.d.ts.map +1 -0
- package/build/esm/cc/AssociationCC.js +706 -0
- package/build/esm/cc/AssociationCC.js.map +1 -0
- package/build/esm/cc/AssociationGroupInfoCC.d.ts +230 -0
- package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -0
- package/build/esm/cc/AssociationGroupInfoCC.js +769 -0
- package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -0
- package/build/esm/cc/BarrierOperatorCC.d.ts +243 -0
- package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -0
- package/build/esm/cc/BarrierOperatorCC.js +610 -0
- package/build/esm/cc/BarrierOperatorCC.js.map +1 -0
- package/build/esm/cc/BasicCC.d.ts +191 -0
- package/build/esm/cc/BasicCC.d.ts.map +1 -0
- package/build/esm/cc/BasicCC.js +390 -0
- package/build/esm/cc/BasicCC.js.map +1 -0
- package/build/esm/cc/BatteryCC.d.ts +406 -0
- package/build/esm/cc/BatteryCC.d.ts.map +1 -0
- package/build/esm/cc/BatteryCC.js +513 -0
- package/build/esm/cc/BatteryCC.js.map +1 -0
- package/build/esm/cc/BinarySensorCC.d.ts +122 -0
- package/build/esm/cc/BinarySensorCC.d.ts.map +1 -0
- package/build/esm/cc/BinarySensorCC.js +417 -0
- package/build/esm/cc/BinarySensorCC.js.map +1 -0
- package/build/esm/cc/BinarySwitchCC.d.ts +139 -0
- package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -0
- package/build/esm/cc/BinarySwitchCC.js +362 -0
- package/build/esm/cc/BinarySwitchCC.js.map +1 -0
- package/build/esm/cc/CRC16CC.d.ts +29 -0
- package/build/esm/cc/CRC16CC.d.ts.map +1 -0
- package/build/esm/cc/CRC16CC.js +123 -0
- package/build/esm/cc/CRC16CC.js.map +1 -0
- package/build/esm/cc/CentralSceneCC.d.ts +210 -0
- package/build/esm/cc/CentralSceneCC.d.ts.map +1 -0
- package/build/esm/cc/CentralSceneCC.js +427 -0
- package/build/esm/cc/CentralSceneCC.js.map +1 -0
- package/build/esm/cc/ClimateControlScheduleCC.d.ts +177 -0
- package/build/esm/cc/ClimateControlScheduleCC.d.ts.map +1 -0
- package/build/esm/cc/ClimateControlScheduleCC.js +466 -0
- package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -0
- package/build/esm/cc/ClockCC.d.ts +47 -0
- package/build/esm/cc/ClockCC.d.ts.map +1 -0
- package/build/esm/cc/ClockCC.js +205 -0
- package/build/esm/cc/ClockCC.js.map +1 -0
- package/build/esm/cc/ColorSwitchCC.d.ts +339 -0
- package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -0
- package/build/esm/cc/ColorSwitchCC.js +1149 -0
- package/build/esm/cc/ColorSwitchCC.js.map +1 -0
- package/build/esm/cc/ConfigurationCC.d.ts +396 -0
- package/build/esm/cc/ConfigurationCC.d.ts.map +1 -0
- package/build/esm/cc/ConfigurationCC.js +2454 -0
- package/build/esm/cc/ConfigurationCC.js.map +1 -0
- package/build/esm/cc/DeviceResetLocallyCC.d.ts +17 -0
- package/build/esm/cc/DeviceResetLocallyCC.d.ts.map +1 -0
- package/build/esm/cc/DeviceResetLocallyCC.js +73 -0
- package/build/esm/cc/DeviceResetLocallyCC.js.map +1 -0
- package/build/esm/cc/DoorLockCC.d.ts +837 -0
- package/build/esm/cc/DoorLockCC.d.ts.map +1 -0
- package/build/esm/cc/DoorLockCC.js +1270 -0
- package/build/esm/cc/DoorLockCC.js.map +1 -0
- package/build/esm/cc/DoorLockLoggingCC.d.ts +77 -0
- package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -0
- package/build/esm/cc/DoorLockLoggingCC.js +316 -0
- package/build/esm/cc/DoorLockLoggingCC.js.map +1 -0
- package/build/esm/cc/EnergyProductionCC.d.ts +77 -0
- package/build/esm/cc/EnergyProductionCC.d.ts.map +1 -0
- package/build/esm/cc/EnergyProductionCC.js +213 -0
- package/build/esm/cc/EnergyProductionCC.js.map +1 -0
- package/build/esm/cc/EntryControlCC.d.ts +231 -0
- package/build/esm/cc/EntryControlCC.d.ts.map +1 -0
- package/build/esm/cc/EntryControlCC.js +581 -0
- package/build/esm/cc/EntryControlCC.js.map +1 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts +359 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js +1142 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -0
- package/build/esm/cc/HailCC.d.ts +6 -0
- package/build/esm/cc/HailCC.d.ts.map +1 -0
- package/build/esm/cc/HailCC.js +21 -0
- package/build/esm/cc/HailCC.js.map +1 -0
- package/build/esm/cc/HumidityControlModeCC.d.ts +111 -0
- package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -0
- package/build/esm/cc/HumidityControlModeCC.js +305 -0
- package/build/esm/cc/HumidityControlModeCC.js.map +1 -0
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts +60 -0
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts.map +1 -0
- package/build/esm/cc/HumidityControlOperatingStateCC.js +137 -0
- package/build/esm/cc/HumidityControlOperatingStateCC.js.map +1 -0
- package/build/esm/cc/HumidityControlSetpointCC.d.ts +209 -0
- package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -0
- package/build/esm/cc/HumidityControlSetpointCC.js +645 -0
- package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -0
- package/build/esm/cc/InclusionControllerCC.d.ts +42 -0
- package/build/esm/cc/InclusionControllerCC.d.ts.map +1 -0
- package/build/esm/cc/InclusionControllerCC.js +133 -0
- package/build/esm/cc/InclusionControllerCC.js.map +1 -0
- package/build/esm/cc/IndicatorCC.d.ts +338 -0
- package/build/esm/cc/IndicatorCC.d.ts.map +1 -0
- package/build/esm/cc/IndicatorCC.js +1317 -0
- package/build/esm/cc/IndicatorCC.js.map +1 -0
- package/build/esm/cc/IrrigationCC.d.ts +1496 -0
- package/build/esm/cc/IrrigationCC.d.ts.map +1 -0
- package/build/esm/cc/IrrigationCC.js +2038 -0
- package/build/esm/cc/IrrigationCC.js.map +1 -0
- package/build/esm/cc/LanguageCC.d.ts +101 -0
- package/build/esm/cc/LanguageCC.d.ts.map +1 -0
- package/build/esm/cc/LanguageCC.js +243 -0
- package/build/esm/cc/LanguageCC.js.map +1 -0
- package/build/esm/cc/LockCC.d.ts +73 -0
- package/build/esm/cc/LockCC.d.ts.map +1 -0
- package/build/esm/cc/LockCC.js +197 -0
- package/build/esm/cc/LockCC.js.map +1 -0
- package/build/esm/cc/ManufacturerProprietaryCC.d.ts +32 -0
- package/build/esm/cc/ManufacturerProprietaryCC.d.ts.map +1 -0
- package/build/esm/cc/ManufacturerProprietaryCC.js +201 -0
- package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -0
- package/build/esm/cc/ManufacturerSpecificCC.d.ts +171 -0
- package/build/esm/cc/ManufacturerSpecificCC.d.ts.map +1 -0
- package/build/esm/cc/ManufacturerSpecificCC.js +315 -0
- package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -0
- package/build/esm/cc/MeterCC.d.ts +318 -0
- package/build/esm/cc/MeterCC.d.ts.map +1 -0
- package/build/esm/cc/MeterCC.js +1308 -0
- package/build/esm/cc/MeterCC.js.map +1 -0
- package/build/esm/cc/MultiChannelAssociationCC.d.ts +241 -0
- package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -0
- package/build/esm/cc/MultiChannelAssociationCC.js +981 -0
- package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -0
- package/build/esm/cc/MultiChannelCC.d.ts +394 -0
- package/build/esm/cc/MultiChannelCC.d.ts.map +1 -0
- package/build/esm/cc/MultiChannelCC.js +1127 -0
- package/build/esm/cc/MultiChannelCC.js.map +1 -0
- package/build/esm/cc/MultiCommandCC.d.ts +27 -0
- package/build/esm/cc/MultiCommandCC.d.ts.map +1 -0
- package/build/esm/cc/MultiCommandCC.js +142 -0
- package/build/esm/cc/MultiCommandCC.js.map +1 -0
- package/build/esm/cc/MultilevelSensorCC.d.ts +185 -0
- package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -0
- package/build/esm/cc/MultilevelSensorCC.js +753 -0
- package/build/esm/cc/MultilevelSensorCC.js.map +1 -0
- package/build/esm/cc/MultilevelSwitchCC.d.ts +357 -0
- package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -0
- package/build/esm/cc/MultilevelSwitchCC.js +810 -0
- package/build/esm/cc/MultilevelSwitchCC.js.map +1 -0
- package/build/esm/cc/NoOperationCC.d.ts +9 -0
- package/build/esm/cc/NoOperationCC.d.ts.map +1 -0
- package/build/esm/cc/NoOperationCC.js +39 -0
- package/build/esm/cc/NoOperationCC.js.map +1 -0
- package/build/esm/cc/NodeNamingCC.d.ts +118 -0
- package/build/esm/cc/NodeNamingCC.d.ts.map +1 -0
- package/build/esm/cc/NodeNamingCC.js +345 -0
- package/build/esm/cc/NodeNamingCC.js.map +1 -0
- package/build/esm/cc/NotificationCC.d.ts +479 -0
- package/build/esm/cc/NotificationCC.d.ts.map +1 -0
- package/build/esm/cc/NotificationCC.js +1350 -0
- package/build/esm/cc/NotificationCC.js.map +1 -0
- package/build/esm/cc/PowerlevelCC.d.ts +82 -0
- package/build/esm/cc/PowerlevelCC.d.ts.map +1 -0
- package/build/esm/cc/PowerlevelCC.js +485 -0
- package/build/esm/cc/PowerlevelCC.js.map +1 -0
- package/build/esm/cc/ProtectionCC.d.ts +325 -0
- package/build/esm/cc/ProtectionCC.d.ts.map +1 -0
- package/build/esm/cc/ProtectionCC.js +669 -0
- package/build/esm/cc/ProtectionCC.js.map +1 -0
- package/build/esm/cc/SceneActivationCC.d.ts +89 -0
- package/build/esm/cc/SceneActivationCC.d.ts.map +1 -0
- package/build/esm/cc/SceneActivationCC.js +166 -0
- package/build/esm/cc/SceneActivationCC.js.map +1 -0
- package/build/esm/cc/SceneActuatorConfigurationCC.d.ts +120 -0
- package/build/esm/cc/SceneActuatorConfigurationCC.d.ts.map +1 -0
- package/build/esm/cc/SceneActuatorConfigurationCC.js +374 -0
- package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -0
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts +129 -0
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts.map +1 -0
- package/build/esm/cc/SceneControllerConfigurationCC.js +446 -0
- package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -0
- package/build/esm/cc/ScheduleEntryLockCC.d.ts +434 -0
- package/build/esm/cc/ScheduleEntryLockCC.d.ts.map +1 -0
- package/build/esm/cc/ScheduleEntryLockCC.js +1826 -0
- package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -0
- package/build/esm/cc/Security2CC.d.ts +251 -0
- package/build/esm/cc/Security2CC.d.ts.map +1 -0
- package/build/esm/cc/Security2CC.js +1814 -0
- package/build/esm/cc/Security2CC.js.map +1 -0
- package/build/esm/cc/SecurityCC.d.ts +128 -0
- package/build/esm/cc/SecurityCC.d.ts.map +1 -0
- package/build/esm/cc/SecurityCC.js +800 -0
- package/build/esm/cc/SecurityCC.js.map +1 -0
- package/build/esm/cc/SoundSwitchCC.d.ts +232 -0
- package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -0
- package/build/esm/cc/SoundSwitchCC.js +633 -0
- package/build/esm/cc/SoundSwitchCC.js.map +1 -0
- package/build/esm/cc/SupervisionCC.d.ts +104 -0
- package/build/esm/cc/SupervisionCC.d.ts.map +1 -0
- package/build/esm/cc/SupervisionCC.js +319 -0
- package/build/esm/cc/SupervisionCC.js.map +1 -0
- package/build/esm/cc/ThermostatFanModeCC.d.ts +141 -0
- package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatFanModeCC.js +359 -0
- package/build/esm/cc/ThermostatFanModeCC.js.map +1 -0
- package/build/esm/cc/ThermostatFanStateCC.d.ts +60 -0
- package/build/esm/cc/ThermostatFanStateCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatFanStateCC.js +139 -0
- package/build/esm/cc/ThermostatFanStateCC.js.map +1 -0
- package/build/esm/cc/ThermostatModeCC.d.ts +150 -0
- package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatModeCC.js +426 -0
- package/build/esm/cc/ThermostatModeCC.js.map +1 -0
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts +61 -0
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatOperatingStateCC.js +135 -0
- package/build/esm/cc/ThermostatOperatingStateCC.js.map +1 -0
- package/build/esm/cc/ThermostatSetbackCC.d.ts +46 -0
- package/build/esm/cc/ThermostatSetbackCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatSetbackCC.js +244 -0
- package/build/esm/cc/ThermostatSetbackCC.js.map +1 -0
- package/build/esm/cc/ThermostatSetpointCC.d.ts +197 -0
- package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatSetpointCC.js +655 -0
- package/build/esm/cc/ThermostatSetpointCC.js.map +1 -0
- package/build/esm/cc/TimeCC.d.ts +88 -0
- package/build/esm/cc/TimeCC.d.ts.map +1 -0
- package/build/esm/cc/TimeCC.js +451 -0
- package/build/esm/cc/TimeCC.js.map +1 -0
- package/build/esm/cc/TimeParametersCC.d.ts +72 -0
- package/build/esm/cc/TimeParametersCC.d.ts.map +1 -0
- package/build/esm/cc/TimeParametersCC.js +300 -0
- package/build/esm/cc/TimeParametersCC.js.map +1 -0
- package/build/esm/cc/TransportServiceCC.d.ts +107 -0
- package/build/esm/cc/TransportServiceCC.d.ts.map +1 -0
- package/build/esm/cc/TransportServiceCC.js +422 -0
- package/build/esm/cc/TransportServiceCC.js.map +1 -0
- package/build/esm/cc/UserCodeCC.d.ts +683 -0
- package/build/esm/cc/UserCodeCC.d.ts.map +1 -0
- package/build/esm/cc/UserCodeCC.js +1695 -0
- package/build/esm/cc/UserCodeCC.js.map +1 -0
- package/build/esm/cc/VersionCC.d.ts +469 -0
- package/build/esm/cc/VersionCC.d.ts.map +1 -0
- package/build/esm/cc/VersionCC.js +862 -0
- package/build/esm/cc/VersionCC.js.map +1 -0
- package/build/esm/cc/WakeUpCC.d.ts +150 -0
- package/build/esm/cc/WakeUpCC.d.ts.map +1 -0
- package/build/esm/cc/WakeUpCC.js +438 -0
- package/build/esm/cc/WakeUpCC.js.map +1 -0
- package/build/esm/cc/WindowCoveringCC.d.ts +315 -0
- package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -0
- package/build/esm/cc/WindowCoveringCC.js +780 -0
- package/build/esm/cc/WindowCoveringCC.js.map +1 -0
- package/build/esm/cc/ZWaveLongRangeCC.d.ts +4 -0
- package/build/esm/cc/ZWaveLongRangeCC.d.ts.map +1 -0
- package/build/esm/cc/ZWaveLongRangeCC.js +17 -0
- package/build/esm/cc/ZWaveLongRangeCC.js.map +1 -0
- package/build/esm/cc/ZWavePlusCC.d.ts +163 -0
- package/build/esm/cc/ZWavePlusCC.d.ts.map +1 -0
- package/build/esm/cc/ZWavePlusCC.js +267 -0
- package/build/esm/cc/ZWavePlusCC.js.map +1 -0
- package/build/esm/cc/ZWaveProtocolCC.d.ts +344 -0
- package/build/esm/cc/ZWaveProtocolCC.d.ts.map +1 -0
- package/build/esm/cc/ZWaveProtocolCC.js +1030 -0
- package/build/esm/cc/ZWaveProtocolCC.js.map +1 -0
- package/build/esm/cc/index.d.ts +132 -0
- package/build/esm/cc/index.d.ts.map +1 -0
- package/build/esm/cc/index.js +71 -0
- package/build/esm/cc/index.js.map +1 -0
- package/build/esm/cc/manufacturerProprietary/Decorators.d.ts +64 -0
- package/build/esm/cc/manufacturerProprietary/Decorators.d.ts.map +1 -0
- package/build/esm/cc/manufacturerProprietary/Decorators.js +79 -0
- package/build/esm/cc/manufacturerProprietary/Decorators.js.map +1 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts +79 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts.map +1 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js +385 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js.map +1 -0
- package/build/esm/index.d.ts +15 -0
- package/build/esm/index.d.ts.map +1 -0
- package/build/esm/index.js +14 -0
- package/build/esm/index.js.map +1 -0
- package/build/esm/index_safe.d.ts +3 -0
- package/build/esm/index_safe.d.ts.map +1 -0
- package/build/esm/index_safe.js +4 -0
- package/build/esm/index_safe.js.map +1 -0
- package/build/esm/lib/API.d.ts +271 -0
- package/build/esm/lib/API.d.ts.map +1 -0
- package/build/esm/lib/API.js +448 -0
- package/build/esm/lib/API.js.map +1 -0
- package/build/esm/lib/CommandClass.d.ts +234 -0
- package/build/esm/lib/CommandClass.d.ts.map +1 -0
- package/build/esm/lib/CommandClass.js +781 -0
- package/build/esm/lib/CommandClass.js.map +1 -0
- package/build/esm/lib/CommandClassDecorators.d.ts +112 -0
- package/build/esm/lib/CommandClassDecorators.d.ts.map +1 -0
- package/build/esm/lib/CommandClassDecorators.js +229 -0
- package/build/esm/lib/CommandClassDecorators.js.map +1 -0
- package/build/esm/lib/EncapsulatingCommandClass.d.ts +22 -0
- package/build/esm/lib/EncapsulatingCommandClass.d.ts.map +1 -0
- package/build/esm/lib/EncapsulatingCommandClass.js +56 -0
- package/build/esm/lib/EncapsulatingCommandClass.js.map +1 -0
- package/build/esm/lib/ICommandClassContainer.d.ts +2 -0
- package/build/esm/lib/ICommandClassContainer.d.ts.map +1 -0
- package/build/esm/lib/ICommandClassContainer.js +2 -0
- package/build/esm/lib/ICommandClassContainer.js.map +1 -0
- package/build/esm/lib/NotificationEventPayload.d.ts +10 -0
- package/build/esm/lib/NotificationEventPayload.d.ts.map +1 -0
- package/build/esm/lib/NotificationEventPayload.js +7 -0
- package/build/esm/lib/NotificationEventPayload.js.map +1 -0
- package/build/esm/lib/Security2/Extension.d.ts +106 -0
- package/build/esm/lib/Security2/Extension.d.ts.map +1 -0
- package/build/esm/lib/Security2/Extension.js +296 -0
- package/build/esm/lib/Security2/Extension.js.map +1 -0
- package/build/esm/lib/Security2/shared.d.ts +37 -0
- package/build/esm/lib/Security2/shared.d.ts.map +1 -0
- package/build/esm/lib/Security2/shared.js +40 -0
- package/build/esm/lib/Security2/shared.js.map +1 -0
- package/build/esm/lib/SetValueResult.d.ts +55 -0
- package/build/esm/lib/SetValueResult.d.ts.map +1 -0
- package/build/esm/lib/SetValueResult.js +53 -0
- package/build/esm/lib/SetValueResult.js.map +1 -0
- package/build/esm/lib/Values.d.ts +223 -0
- package/build/esm/lib/Values.d.ts.map +1 -0
- package/build/esm/lib/Values.js +169 -0
- package/build/esm/lib/Values.js.map +1 -0
- package/build/esm/lib/_Types.d.ts +1461 -0
- package/build/esm/lib/_Types.d.ts.map +1 -0
- package/build/esm/lib/_Types.js +1432 -0
- package/build/esm/lib/_Types.js.map +1 -0
- package/build/esm/lib/serializers.d.ts +34 -0
- package/build/esm/lib/serializers.d.ts.map +1 -0
- package/build/esm/lib/serializers.js +98 -0
- package/build/esm/lib/serializers.js.map +1 -0
- package/build/esm/lib/utils.d.ts +17 -0
- package/build/esm/lib/utils.d.ts.map +1 -0
- package/build/esm/lib/utils.js +847 -0
- package/build/esm/lib/utils.js.map +1 -0
- package/build/esm/package.json +3 -0
- package/package.json +28 -23
- package/build/cc/AlarmSensorCC.d.ts +0 -194
- package/build/cc/AlarmSensorCC.d.ts.map +0 -1
- package/build/cc/AlarmSensorCC.js +0 -395
- package/build/cc/AlarmSensorCC.js.map +0 -1
- package/build/cc/AssociationCC.d.ts +0 -253
- package/build/cc/AssociationCC.d.ts.map +0 -1
- package/build/cc/AssociationCC.js +0 -732
- package/build/cc/AssociationCC.js.map +0 -1
- package/build/cc/AssociationGroupInfoCC.d.ts +0 -230
- package/build/cc/AssociationGroupInfoCC.d.ts.map +0 -1
- package/build/cc/AssociationGroupInfoCC.js +0 -772
- package/build/cc/AssociationGroupInfoCC.js.map +0 -1
- package/build/cc/BarrierOperatorCC.d.ts +0 -243
- package/build/cc/BarrierOperatorCC.d.ts.map +0 -1
- package/build/cc/BarrierOperatorCC.js +0 -613
- package/build/cc/BarrierOperatorCC.js.map +0 -1
- package/build/cc/BasicCC.d.ts +0 -191
- package/build/cc/BasicCC.d.ts.map +0 -1
- package/build/cc/BasicCC.js +0 -393
- package/build/cc/BasicCC.js.map +0 -1
- package/build/cc/BatteryCC.d.ts +0 -406
- package/build/cc/BatteryCC.d.ts.map +0 -1
- package/build/cc/BatteryCC.js +0 -516
- package/build/cc/BatteryCC.js.map +0 -1
- package/build/cc/BinarySensorCC.d.ts +0 -122
- package/build/cc/BinarySensorCC.d.ts.map +0 -1
- package/build/cc/BinarySensorCC.js +0 -420
- package/build/cc/BinarySensorCC.js.map +0 -1
- package/build/cc/BinarySwitchCC.d.ts +0 -139
- package/build/cc/BinarySwitchCC.d.ts.map +0 -1
- package/build/cc/BinarySwitchCC.js +0 -365
- package/build/cc/BinarySwitchCC.js.map +0 -1
- package/build/cc/CRC16CC.d.ts +0 -29
- package/build/cc/CRC16CC.d.ts.map +0 -1
- package/build/cc/CRC16CC.js +0 -126
- package/build/cc/CRC16CC.js.map +0 -1
- package/build/cc/CentralSceneCC.d.ts +0 -210
- package/build/cc/CentralSceneCC.d.ts.map +0 -1
- package/build/cc/CentralSceneCC.js +0 -453
- package/build/cc/CentralSceneCC.js.map +0 -1
- package/build/cc/ClimateControlScheduleCC.d.ts +0 -177
- package/build/cc/ClimateControlScheduleCC.d.ts.map +0 -1
- package/build/cc/ClimateControlScheduleCC.js +0 -469
- package/build/cc/ClimateControlScheduleCC.js.map +0 -1
- package/build/cc/ClockCC.d.ts +0 -47
- package/build/cc/ClockCC.d.ts.map +0 -1
- package/build/cc/ClockCC.js +0 -208
- package/build/cc/ClockCC.js.map +0 -1
- package/build/cc/ColorSwitchCC.d.ts +0 -339
- package/build/cc/ColorSwitchCC.d.ts.map +0 -1
- package/build/cc/ColorSwitchCC.js +0 -1152
- package/build/cc/ColorSwitchCC.js.map +0 -1
- package/build/cc/ConfigurationCC.d.ts +0 -396
- package/build/cc/ConfigurationCC.d.ts.map +0 -1
- package/build/cc/ConfigurationCC.js +0 -2458
- package/build/cc/ConfigurationCC.js.map +0 -1
- package/build/cc/DeviceResetLocallyCC.d.ts +0 -17
- package/build/cc/DeviceResetLocallyCC.d.ts.map +0 -1
- package/build/cc/DeviceResetLocallyCC.js +0 -76
- package/build/cc/DeviceResetLocallyCC.js.map +0 -1
- package/build/cc/DoorLockCC.d.ts +0 -837
- package/build/cc/DoorLockCC.d.ts.map +0 -1
- package/build/cc/DoorLockCC.js +0 -1273
- package/build/cc/DoorLockCC.js.map +0 -1
- package/build/cc/DoorLockLoggingCC.d.ts +0 -77
- package/build/cc/DoorLockLoggingCC.d.ts.map +0 -1
- package/build/cc/DoorLockLoggingCC.js +0 -319
- package/build/cc/DoorLockLoggingCC.js.map +0 -1
- package/build/cc/EnergyProductionCC.d.ts +0 -77
- package/build/cc/EnergyProductionCC.d.ts.map +0 -1
- package/build/cc/EnergyProductionCC.js +0 -216
- package/build/cc/EnergyProductionCC.js.map +0 -1
- package/build/cc/EntryControlCC.d.ts +0 -231
- package/build/cc/EntryControlCC.d.ts.map +0 -1
- package/build/cc/EntryControlCC.js +0 -607
- package/build/cc/EntryControlCC.js.map +0 -1
- package/build/cc/FirmwareUpdateMetaDataCC.d.ts +0 -359
- package/build/cc/FirmwareUpdateMetaDataCC.d.ts.map +0 -1
- package/build/cc/FirmwareUpdateMetaDataCC.js +0 -1145
- package/build/cc/FirmwareUpdateMetaDataCC.js.map +0 -1
- package/build/cc/HailCC.d.ts +0 -6
- package/build/cc/HailCC.d.ts.map +0 -1
- package/build/cc/HailCC.js +0 -24
- package/build/cc/HailCC.js.map +0 -1
- package/build/cc/HumidityControlModeCC.d.ts +0 -111
- package/build/cc/HumidityControlModeCC.d.ts.map +0 -1
- package/build/cc/HumidityControlModeCC.js +0 -308
- package/build/cc/HumidityControlModeCC.js.map +0 -1
- package/build/cc/HumidityControlOperatingStateCC.d.ts +0 -60
- package/build/cc/HumidityControlOperatingStateCC.d.ts.map +0 -1
- package/build/cc/HumidityControlOperatingStateCC.js +0 -140
- package/build/cc/HumidityControlOperatingStateCC.js.map +0 -1
- package/build/cc/HumidityControlSetpointCC.d.ts +0 -209
- package/build/cc/HumidityControlSetpointCC.d.ts.map +0 -1
- package/build/cc/HumidityControlSetpointCC.js +0 -648
- package/build/cc/HumidityControlSetpointCC.js.map +0 -1
- package/build/cc/InclusionControllerCC.d.ts +0 -42
- package/build/cc/InclusionControllerCC.d.ts.map +0 -1
- package/build/cc/InclusionControllerCC.js +0 -136
- package/build/cc/InclusionControllerCC.js.map +0 -1
- package/build/cc/IndicatorCC.d.ts +0 -338
- package/build/cc/IndicatorCC.d.ts.map +0 -1
- package/build/cc/IndicatorCC.js +0 -1320
- package/build/cc/IndicatorCC.js.map +0 -1
- package/build/cc/IrrigationCC.d.ts +0 -1496
- package/build/cc/IrrigationCC.d.ts.map +0 -1
- package/build/cc/IrrigationCC.js +0 -2041
- package/build/cc/IrrigationCC.js.map +0 -1
- package/build/cc/LanguageCC.d.ts +0 -101
- package/build/cc/LanguageCC.d.ts.map +0 -1
- package/build/cc/LanguageCC.js +0 -246
- package/build/cc/LanguageCC.js.map +0 -1
- package/build/cc/LockCC.d.ts +0 -73
- package/build/cc/LockCC.d.ts.map +0 -1
- package/build/cc/LockCC.js +0 -200
- package/build/cc/LockCC.js.map +0 -1
- package/build/cc/ManufacturerProprietaryCC.d.ts +0 -32
- package/build/cc/ManufacturerProprietaryCC.d.ts.map +0 -1
- package/build/cc/ManufacturerProprietaryCC.js +0 -204
- package/build/cc/ManufacturerProprietaryCC.js.map +0 -1
- package/build/cc/ManufacturerSpecificCC.d.ts +0 -171
- package/build/cc/ManufacturerSpecificCC.d.ts.map +0 -1
- package/build/cc/ManufacturerSpecificCC.js +0 -318
- package/build/cc/ManufacturerSpecificCC.js.map +0 -1
- package/build/cc/MeterCC.d.ts +0 -318
- package/build/cc/MeterCC.d.ts.map +0 -1
- package/build/cc/MeterCC.js +0 -1312
- package/build/cc/MeterCC.js.map +0 -1
- package/build/cc/MultiChannelAssociationCC.d.ts +0 -241
- package/build/cc/MultiChannelAssociationCC.d.ts.map +0 -1
- package/build/cc/MultiChannelAssociationCC.js +0 -1007
- package/build/cc/MultiChannelAssociationCC.js.map +0 -1
- package/build/cc/MultiChannelCC.d.ts +0 -394
- package/build/cc/MultiChannelCC.d.ts.map +0 -1
- package/build/cc/MultiChannelCC.js +0 -1130
- package/build/cc/MultiChannelCC.js.map +0 -1
- package/build/cc/MultiCommandCC.d.ts +0 -27
- package/build/cc/MultiCommandCC.d.ts.map +0 -1
- package/build/cc/MultiCommandCC.js +0 -145
- package/build/cc/MultiCommandCC.js.map +0 -1
- package/build/cc/MultilevelSensorCC.d.ts +0 -185
- package/build/cc/MultilevelSensorCC.d.ts.map +0 -1
- package/build/cc/MultilevelSensorCC.js +0 -756
- package/build/cc/MultilevelSensorCC.js.map +0 -1
- package/build/cc/MultilevelSwitchCC.d.ts +0 -357
- package/build/cc/MultilevelSwitchCC.d.ts.map +0 -1
- package/build/cc/MultilevelSwitchCC.js +0 -813
- package/build/cc/MultilevelSwitchCC.js.map +0 -1
- package/build/cc/NoOperationCC.d.ts +0 -9
- package/build/cc/NoOperationCC.d.ts.map +0 -1
- package/build/cc/NoOperationCC.js +0 -42
- package/build/cc/NoOperationCC.js.map +0 -1
- package/build/cc/NodeNamingCC.d.ts +0 -118
- package/build/cc/NodeNamingCC.d.ts.map +0 -1
- package/build/cc/NodeNamingCC.js +0 -348
- package/build/cc/NodeNamingCC.js.map +0 -1
- package/build/cc/NotificationCC.d.ts +0 -479
- package/build/cc/NotificationCC.d.ts.map +0 -1
- package/build/cc/NotificationCC.js +0 -1379
- package/build/cc/NotificationCC.js.map +0 -1
- package/build/cc/PowerlevelCC.d.ts +0 -82
- package/build/cc/PowerlevelCC.d.ts.map +0 -1
- package/build/cc/PowerlevelCC.js +0 -488
- package/build/cc/PowerlevelCC.js.map +0 -1
- package/build/cc/ProtectionCC.d.ts +0 -325
- package/build/cc/ProtectionCC.d.ts.map +0 -1
- package/build/cc/ProtectionCC.js +0 -672
- package/build/cc/ProtectionCC.js.map +0 -1
- package/build/cc/SceneActivationCC.d.ts +0 -89
- package/build/cc/SceneActivationCC.d.ts.map +0 -1
- package/build/cc/SceneActivationCC.js +0 -169
- package/build/cc/SceneActivationCC.js.map +0 -1
- package/build/cc/SceneActuatorConfigurationCC.d.ts +0 -120
- package/build/cc/SceneActuatorConfigurationCC.d.ts.map +0 -1
- package/build/cc/SceneActuatorConfigurationCC.js +0 -377
- package/build/cc/SceneActuatorConfigurationCC.js.map +0 -1
- package/build/cc/SceneControllerConfigurationCC.d.ts +0 -129
- package/build/cc/SceneControllerConfigurationCC.d.ts.map +0 -1
- package/build/cc/SceneControllerConfigurationCC.js +0 -449
- package/build/cc/SceneControllerConfigurationCC.js.map +0 -1
- package/build/cc/ScheduleEntryLockCC.d.ts +0 -434
- package/build/cc/ScheduleEntryLockCC.d.ts.map +0 -1
- package/build/cc/ScheduleEntryLockCC.js +0 -1829
- package/build/cc/ScheduleEntryLockCC.js.map +0 -1
- package/build/cc/Security2CC.d.ts +0 -251
- package/build/cc/Security2CC.d.ts.map +0 -1
- package/build/cc/Security2CC.js +0 -1817
- package/build/cc/Security2CC.js.map +0 -1
- package/build/cc/SecurityCC.d.ts +0 -128
- package/build/cc/SecurityCC.d.ts.map +0 -1
- package/build/cc/SecurityCC.js +0 -803
- package/build/cc/SecurityCC.js.map +0 -1
- package/build/cc/SoundSwitchCC.d.ts +0 -232
- package/build/cc/SoundSwitchCC.d.ts.map +0 -1
- package/build/cc/SoundSwitchCC.js +0 -636
- package/build/cc/SoundSwitchCC.js.map +0 -1
- package/build/cc/SupervisionCC.d.ts +0 -104
- package/build/cc/SupervisionCC.d.ts.map +0 -1
- package/build/cc/SupervisionCC.js +0 -322
- package/build/cc/SupervisionCC.js.map +0 -1
- package/build/cc/ThermostatFanModeCC.d.ts +0 -141
- package/build/cc/ThermostatFanModeCC.d.ts.map +0 -1
- package/build/cc/ThermostatFanModeCC.js +0 -362
- package/build/cc/ThermostatFanModeCC.js.map +0 -1
- package/build/cc/ThermostatFanStateCC.d.ts +0 -60
- package/build/cc/ThermostatFanStateCC.d.ts.map +0 -1
- package/build/cc/ThermostatFanStateCC.js +0 -142
- package/build/cc/ThermostatFanStateCC.js.map +0 -1
- package/build/cc/ThermostatModeCC.d.ts +0 -150
- package/build/cc/ThermostatModeCC.d.ts.map +0 -1
- package/build/cc/ThermostatModeCC.js +0 -429
- package/build/cc/ThermostatModeCC.js.map +0 -1
- package/build/cc/ThermostatOperatingStateCC.d.ts +0 -61
- package/build/cc/ThermostatOperatingStateCC.d.ts.map +0 -1
- package/build/cc/ThermostatOperatingStateCC.js +0 -138
- package/build/cc/ThermostatOperatingStateCC.js.map +0 -1
- package/build/cc/ThermostatSetbackCC.d.ts +0 -46
- package/build/cc/ThermostatSetbackCC.d.ts.map +0 -1
- package/build/cc/ThermostatSetbackCC.js +0 -247
- package/build/cc/ThermostatSetbackCC.js.map +0 -1
- package/build/cc/ThermostatSetpointCC.d.ts +0 -197
- package/build/cc/ThermostatSetpointCC.d.ts.map +0 -1
- package/build/cc/ThermostatSetpointCC.js +0 -658
- package/build/cc/ThermostatSetpointCC.js.map +0 -1
- package/build/cc/TimeCC.d.ts +0 -88
- package/build/cc/TimeCC.d.ts.map +0 -1
- package/build/cc/TimeCC.js +0 -454
- package/build/cc/TimeCC.js.map +0 -1
- package/build/cc/TimeParametersCC.d.ts +0 -72
- package/build/cc/TimeParametersCC.d.ts.map +0 -1
- package/build/cc/TimeParametersCC.js +0 -303
- package/build/cc/TimeParametersCC.js.map +0 -1
- package/build/cc/TransportServiceCC.d.ts +0 -107
- package/build/cc/TransportServiceCC.d.ts.map +0 -1
- package/build/cc/TransportServiceCC.js +0 -426
- package/build/cc/TransportServiceCC.js.map +0 -1
- package/build/cc/UserCodeCC.d.ts +0 -683
- package/build/cc/UserCodeCC.d.ts.map +0 -1
- package/build/cc/UserCodeCC.js +0 -1699
- package/build/cc/UserCodeCC.js.map +0 -1
- package/build/cc/VersionCC.d.ts +0 -469
- package/build/cc/VersionCC.d.ts.map +0 -1
- package/build/cc/VersionCC.js +0 -865
- package/build/cc/VersionCC.js.map +0 -1
- package/build/cc/WakeUpCC.d.ts +0 -150
- package/build/cc/WakeUpCC.d.ts.map +0 -1
- package/build/cc/WakeUpCC.js +0 -441
- package/build/cc/WakeUpCC.js.map +0 -1
- package/build/cc/WindowCoveringCC.d.ts +0 -315
- package/build/cc/WindowCoveringCC.d.ts.map +0 -1
- package/build/cc/WindowCoveringCC.js +0 -783
- package/build/cc/WindowCoveringCC.js.map +0 -1
- package/build/cc/ZWaveLongRangeCC.d.ts +0 -4
- package/build/cc/ZWaveLongRangeCC.d.ts.map +0 -1
- package/build/cc/ZWaveLongRangeCC.js +0 -20
- package/build/cc/ZWaveLongRangeCC.js.map +0 -1
- package/build/cc/ZWavePlusCC.d.ts +0 -163
- package/build/cc/ZWavePlusCC.d.ts.map +0 -1
- package/build/cc/ZWavePlusCC.js +0 -270
- package/build/cc/ZWavePlusCC.js.map +0 -1
- package/build/cc/ZWaveProtocolCC.d.ts +0 -344
- package/build/cc/ZWaveProtocolCC.d.ts.map +0 -1
- package/build/cc/ZWaveProtocolCC.js +0 -1033
- package/build/cc/ZWaveProtocolCC.js.map +0 -1
- package/build/cc/index.d.ts +0 -132
- package/build/cc/index.d.ts.map +0 -1
- package/build/cc/index.js +0 -627
- package/build/cc/index.js.map +0 -1
- package/build/cc/manufacturerProprietary/Decorators.d.ts +0 -64
- package/build/cc/manufacturerProprietary/Decorators.d.ts.map +0 -1
- package/build/cc/manufacturerProprietary/Decorators.js +0 -83
- package/build/cc/manufacturerProprietary/Decorators.js.map +0 -1
- package/build/cc/manufacturerProprietary/FibaroCC.d.ts +0 -79
- package/build/cc/manufacturerProprietary/FibaroCC.d.ts.map +0 -1
- package/build/cc/manufacturerProprietary/FibaroCC.js +0 -392
- package/build/cc/manufacturerProprietary/FibaroCC.js.map +0 -1
- package/build/index.d.ts +0 -15
- package/build/index.d.ts.map +0 -1
- package/build/index.js +0 -52
- package/build/index.js.map +0 -1
- package/build/index_safe.d.ts +0 -3
- package/build/index_safe.d.ts.map +0 -1
- package/build/index_safe.js +0 -20
- package/build/index_safe.js.map +0 -1
- package/build/lib/API.d.ts +0 -271
- package/build/lib/API.d.ts.map +0 -1
- package/build/lib/API.js +0 -458
- package/build/lib/API.js.map +0 -1
- package/build/lib/CommandClass.d.ts +0 -234
- package/build/lib/CommandClass.d.ts.map +0 -1
- package/build/lib/CommandClass.js +0 -788
- package/build/lib/CommandClass.js.map +0 -1
- package/build/lib/CommandClassDecorators.d.ts +0 -112
- package/build/lib/CommandClassDecorators.d.ts.map +0 -1
- package/build/lib/CommandClassDecorators.js +0 -243
- package/build/lib/CommandClassDecorators.js.map +0 -1
- package/build/lib/EncapsulatingCommandClass.d.ts +0 -22
- package/build/lib/EncapsulatingCommandClass.d.ts.map +0 -1
- package/build/lib/EncapsulatingCommandClass.js +0 -61
- package/build/lib/EncapsulatingCommandClass.js.map +0 -1
- package/build/lib/ICommandClassContainer.d.ts.map +0 -1
- package/build/lib/ICommandClassContainer.js +0 -3
- package/build/lib/ICommandClassContainer.js.map +0 -1
- package/build/lib/NotificationEventPayload.d.ts +0 -10
- package/build/lib/NotificationEventPayload.d.ts.map +0 -1
- package/build/lib/NotificationEventPayload.js +0 -10
- package/build/lib/NotificationEventPayload.js.map +0 -1
- package/build/lib/Security2/Extension.d.ts.map +0 -1
- package/build/lib/Security2/Extension.js +0 -303
- package/build/lib/Security2/Extension.js.map +0 -1
- package/build/lib/Security2/shared.d.ts.map +0 -1
- package/build/lib/Security2/shared.js +0 -43
- package/build/lib/Security2/shared.js.map +0 -1
- package/build/lib/SetValueResult.d.ts.map +0 -1
- package/build/lib/SetValueResult.js +0 -60
- package/build/lib/SetValueResult.js.map +0 -1
- package/build/lib/Values.d.ts +0 -223
- package/build/lib/Values.d.ts.map +0 -1
- package/build/lib/Values.js +0 -172
- package/build/lib/Values.js.map +0 -1
- package/build/lib/_Types.d.ts.map +0 -1
- package/build/lib/_Types.js +0 -1443
- package/build/lib/_Types.js.map +0 -1
- package/build/lib/serializers.d.ts +0 -34
- package/build/lib/serializers.d.ts.map +0 -1
- package/build/lib/serializers.js +0 -107
- package/build/lib/serializers.js.map +0 -1
- package/build/lib/utils.d.ts +0 -17
- package/build/lib/utils.d.ts.map +0 -1
- package/build/lib/utils.js +0 -860
- package/build/lib/utils.js.map +0 -1
- /package/build/{lib → cjs/lib}/ICommandClassContainer.d.ts +0 -0
- /package/build/{lib → cjs/lib}/Security2/Extension.d.ts +0 -0
- /package/build/{lib → cjs/lib}/Security2/shared.d.ts +0 -0
- /package/build/{lib → cjs/lib}/SetValueResult.d.ts +0 -0
- /package/build/{lib → cjs/lib}/_Types.d.ts +0 -0
|
@@ -0,0 +1,582 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var BarrierOperatorCC_exports = {};
|
|
20
|
+
__export(BarrierOperatorCC_exports, {
|
|
21
|
+
BarrierOperatorCC: () => BarrierOperatorCC,
|
|
22
|
+
BarrierOperatorCCAPI: () => BarrierOperatorCCAPI,
|
|
23
|
+
BarrierOperatorCCEventSignalingGet: () => BarrierOperatorCCEventSignalingGet,
|
|
24
|
+
BarrierOperatorCCEventSignalingReport: () => BarrierOperatorCCEventSignalingReport,
|
|
25
|
+
BarrierOperatorCCEventSignalingSet: () => BarrierOperatorCCEventSignalingSet,
|
|
26
|
+
BarrierOperatorCCGet: () => BarrierOperatorCCGet,
|
|
27
|
+
BarrierOperatorCCReport: () => BarrierOperatorCCReport,
|
|
28
|
+
BarrierOperatorCCSet: () => BarrierOperatorCCSet,
|
|
29
|
+
BarrierOperatorCCSignalingCapabilitiesGet: () => BarrierOperatorCCSignalingCapabilitiesGet,
|
|
30
|
+
BarrierOperatorCCSignalingCapabilitiesReport: () => BarrierOperatorCCSignalingCapabilitiesReport,
|
|
31
|
+
BarrierOperatorCCValues: () => BarrierOperatorCCValues
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(BarrierOperatorCC_exports);
|
|
34
|
+
var import_safe = require("@zwave-js/core/safe");
|
|
35
|
+
var import_safe2 = require("@zwave-js/shared/safe");
|
|
36
|
+
var import_safe3 = require("@zwave-js/shared/safe");
|
|
37
|
+
var import_API = require("../lib/API.js");
|
|
38
|
+
var import_CommandClass = require("../lib/CommandClass.js");
|
|
39
|
+
var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
|
|
40
|
+
var import_Values = require("../lib/Values.js");
|
|
41
|
+
var import_Types = require("../lib/_Types.js");
|
|
42
|
+
var __decorate = function(decorators, target, key, desc) {
|
|
43
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
44
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
45
|
+
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;
|
|
46
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
47
|
+
};
|
|
48
|
+
var BarrierOperatorCCReport_1, BarrierOperatorCCSignalingCapabilitiesReport_1, BarrierOperatorCCEventSignalingReport_1;
|
|
49
|
+
function __assertType(argName, typeName, boundHasError) {
|
|
50
|
+
const { ZWaveError: ZWaveError2, ZWaveErrorCodes: ZWaveErrorCodes2 } = require("@zwave-js/core");
|
|
51
|
+
if (boundHasError()) {
|
|
52
|
+
throw new ZWaveError2(typeName ? `${argName} is not a ${typeName}` : `${argName} has the wrong type`, ZWaveErrorCodes2.Argument_Invalid);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
const __assertType__su__1__2_eu = ($o) => {
|
|
56
|
+
function _1($o2) {
|
|
57
|
+
return $o2 !== 0 ? {} : null;
|
|
58
|
+
}
|
|
59
|
+
function _2($o2) {
|
|
60
|
+
return $o2 !== 255 ? {} : null;
|
|
61
|
+
}
|
|
62
|
+
function su__1__2_eu($o2) {
|
|
63
|
+
const conditions = [_1, _2];
|
|
64
|
+
for (const condition of conditions) {
|
|
65
|
+
const error = condition($o2);
|
|
66
|
+
if (!error)
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
return {};
|
|
70
|
+
}
|
|
71
|
+
return su__1__2_eu($o);
|
|
72
|
+
};
|
|
73
|
+
const __assertType__SubsystemType = ($o) => {
|
|
74
|
+
function su__1__2_eu($o2) {
|
|
75
|
+
return ![1, 2].includes($o2) ? {} : null;
|
|
76
|
+
}
|
|
77
|
+
return su__1__2_eu($o);
|
|
78
|
+
};
|
|
79
|
+
const __assertType__SubsystemState = ($o) => {
|
|
80
|
+
function su__1__2_eu($o2) {
|
|
81
|
+
return ![0, 255].includes($o2) ? {} : null;
|
|
82
|
+
}
|
|
83
|
+
return su__1__2_eu($o);
|
|
84
|
+
};
|
|
85
|
+
const BarrierOperatorCCValues = Object.freeze({
|
|
86
|
+
...import_Values.V.defineStaticCCValues(import_safe.CommandClasses["Barrier Operator"], {
|
|
87
|
+
...import_Values.V.staticProperty("supportedSubsystemTypes", void 0, {
|
|
88
|
+
internal: true
|
|
89
|
+
}),
|
|
90
|
+
...import_Values.V.staticProperty("position", {
|
|
91
|
+
...import_safe.ValueMetadata.ReadOnlyUInt8,
|
|
92
|
+
label: "Barrier Position",
|
|
93
|
+
unit: "%",
|
|
94
|
+
max: 100
|
|
95
|
+
}),
|
|
96
|
+
...import_Values.V.staticProperty("targetState", {
|
|
97
|
+
...import_safe.ValueMetadata.UInt8,
|
|
98
|
+
label: "Target Barrier State",
|
|
99
|
+
states: (0, import_safe.enumValuesToMetadataStates)(import_Types.BarrierState, [
|
|
100
|
+
import_Types.BarrierState.Open,
|
|
101
|
+
import_Types.BarrierState.Closed
|
|
102
|
+
])
|
|
103
|
+
}),
|
|
104
|
+
...import_Values.V.staticProperty("currentState", {
|
|
105
|
+
...import_safe.ValueMetadata.ReadOnlyUInt8,
|
|
106
|
+
label: "Current Barrier State",
|
|
107
|
+
states: (0, import_safe.enumValuesToMetadataStates)(import_Types.BarrierState)
|
|
108
|
+
})
|
|
109
|
+
}),
|
|
110
|
+
...import_Values.V.defineDynamicCCValues(import_safe.CommandClasses["Barrier Operator"], {
|
|
111
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("signalingState", "signalingState", (subsystemType) => subsystemType, ({ property, propertyKey }) => property === "signalingState" && typeof propertyKey === "number", (subsystemType) => ({
|
|
112
|
+
...import_safe.ValueMetadata.UInt8,
|
|
113
|
+
label: `Signaling State (${(0, import_safe3.getEnumMemberName)(import_Types.SubsystemType, subsystemType)})`,
|
|
114
|
+
states: (0, import_safe.enumValuesToMetadataStates)(import_Types.SubsystemState)
|
|
115
|
+
}))
|
|
116
|
+
})
|
|
117
|
+
});
|
|
118
|
+
let BarrierOperatorCCAPI = class BarrierOperatorCCAPI2 extends import_API.CCAPI {
|
|
119
|
+
supportsCommand(cmd) {
|
|
120
|
+
switch (cmd) {
|
|
121
|
+
case import_Types.BarrierOperatorCommand.Get:
|
|
122
|
+
case import_Types.BarrierOperatorCommand.Set:
|
|
123
|
+
case import_Types.BarrierOperatorCommand.SignalingCapabilitiesGet:
|
|
124
|
+
case import_Types.BarrierOperatorCommand.EventSignalingGet:
|
|
125
|
+
case import_Types.BarrierOperatorCommand.EventSignalingSet:
|
|
126
|
+
return true;
|
|
127
|
+
}
|
|
128
|
+
return super.supportsCommand(cmd);
|
|
129
|
+
}
|
|
130
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
131
|
+
async get() {
|
|
132
|
+
this.assertSupportsCommand(import_Types.BarrierOperatorCommand, import_Types.BarrierOperatorCommand.Get);
|
|
133
|
+
const cc = new BarrierOperatorCCGet({
|
|
134
|
+
nodeId: this.endpoint.nodeId,
|
|
135
|
+
endpointIndex: this.endpoint.index
|
|
136
|
+
});
|
|
137
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
138
|
+
if (response) {
|
|
139
|
+
return (0, import_safe3.pick)(response, ["currentState", "position"]);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
async set(targetState) {
|
|
143
|
+
__assertType("targetState", void 0, __assertType__su__1__2_eu.bind(void 0, targetState));
|
|
144
|
+
this.assertSupportsCommand(import_Types.BarrierOperatorCommand, import_Types.BarrierOperatorCommand.Set);
|
|
145
|
+
const cc = new BarrierOperatorCCSet({
|
|
146
|
+
nodeId: this.endpoint.nodeId,
|
|
147
|
+
endpointIndex: this.endpoint.index,
|
|
148
|
+
targetState
|
|
149
|
+
});
|
|
150
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
151
|
+
}
|
|
152
|
+
async getSignalingCapabilities() {
|
|
153
|
+
this.assertSupportsCommand(import_Types.BarrierOperatorCommand, import_Types.BarrierOperatorCommand.SignalingCapabilitiesGet);
|
|
154
|
+
const cc = new BarrierOperatorCCSignalingCapabilitiesGet({
|
|
155
|
+
nodeId: this.endpoint.nodeId,
|
|
156
|
+
endpointIndex: this.endpoint.index
|
|
157
|
+
});
|
|
158
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
159
|
+
return response?.supportedSubsystemTypes;
|
|
160
|
+
}
|
|
161
|
+
async getEventSignaling(subsystemType) {
|
|
162
|
+
__assertType("subsystemType", "SubsystemType", __assertType__SubsystemType.bind(void 0, subsystemType));
|
|
163
|
+
this.assertSupportsCommand(import_Types.BarrierOperatorCommand, import_Types.BarrierOperatorCommand.EventSignalingGet);
|
|
164
|
+
const cc = new BarrierOperatorCCEventSignalingGet({
|
|
165
|
+
nodeId: this.endpoint.nodeId,
|
|
166
|
+
endpointIndex: this.endpoint.index,
|
|
167
|
+
subsystemType
|
|
168
|
+
});
|
|
169
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
170
|
+
return response?.subsystemState;
|
|
171
|
+
}
|
|
172
|
+
async setEventSignaling(subsystemType, subsystemState) {
|
|
173
|
+
__assertType("subsystemType", "SubsystemType", __assertType__SubsystemType.bind(void 0, subsystemType));
|
|
174
|
+
__assertType("subsystemState", "SubsystemState", __assertType__SubsystemState.bind(void 0, subsystemState));
|
|
175
|
+
this.assertSupportsCommand(import_Types.BarrierOperatorCommand, import_Types.BarrierOperatorCommand.EventSignalingSet);
|
|
176
|
+
const cc = new BarrierOperatorCCEventSignalingSet({
|
|
177
|
+
nodeId: this.endpoint.nodeId,
|
|
178
|
+
endpointIndex: this.endpoint.index,
|
|
179
|
+
subsystemType,
|
|
180
|
+
subsystemState
|
|
181
|
+
});
|
|
182
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
183
|
+
}
|
|
184
|
+
get [import_API.SET_VALUE]() {
|
|
185
|
+
return async function({ property, propertyKey }, value) {
|
|
186
|
+
if (property === "targetState") {
|
|
187
|
+
if (typeof value !== "number") {
|
|
188
|
+
(0, import_API.throwWrongValueType)(this.ccId, property, "number", typeof value);
|
|
189
|
+
}
|
|
190
|
+
const targetValue = value === import_Types.BarrierState.Closed ? import_Types.BarrierState.Closed : import_Types.BarrierState.Open;
|
|
191
|
+
return this.set(targetValue);
|
|
192
|
+
} else if (property === "signalingState") {
|
|
193
|
+
if (propertyKey == void 0) {
|
|
194
|
+
(0, import_API.throwMissingPropertyKey)(this.ccId, property);
|
|
195
|
+
} else if (typeof propertyKey !== "number") {
|
|
196
|
+
(0, import_API.throwUnsupportedPropertyKey)(this.ccId, property, propertyKey);
|
|
197
|
+
}
|
|
198
|
+
if (typeof value !== "number") {
|
|
199
|
+
(0, import_API.throwWrongValueType)(this.ccId, property, "number", typeof value);
|
|
200
|
+
}
|
|
201
|
+
return this.setEventSignaling(propertyKey, value);
|
|
202
|
+
} else {
|
|
203
|
+
(0, import_API.throwUnsupportedProperty)(this.ccId, property);
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
[import_API.SET_VALUE_HOOKS] = ({ property, propertyKey }, value, _options) => {
|
|
208
|
+
const valueId = {
|
|
209
|
+
commandClass: this.ccId,
|
|
210
|
+
property,
|
|
211
|
+
propertyKey
|
|
212
|
+
};
|
|
213
|
+
if (BarrierOperatorCCValues.targetState.is(valueId)) {
|
|
214
|
+
const currentStateValueId = BarrierOperatorCCValues.currentState.endpoint(this.endpoint.index);
|
|
215
|
+
const targetValue = value === import_Types.BarrierState.Closed ? import_Types.BarrierState.Closed : import_Types.BarrierState.Open;
|
|
216
|
+
return {
|
|
217
|
+
// Barrier Operator commands may take some time to be executed.
|
|
218
|
+
// Therefore we try to supervise the command execution and delay the
|
|
219
|
+
// optimistic update until the final result is received.
|
|
220
|
+
supervisionDelayedUpdates: true,
|
|
221
|
+
supervisionOnSuccess: () => {
|
|
222
|
+
this.tryGetValueDB()?.setValue(currentStateValueId, targetValue);
|
|
223
|
+
},
|
|
224
|
+
supervisionOnFailure: async () => {
|
|
225
|
+
try {
|
|
226
|
+
await this.get();
|
|
227
|
+
} catch {
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
optimisticallyUpdateRelatedValues: (supervisedAndSuccessful) => {
|
|
231
|
+
if (!supervisedAndSuccessful)
|
|
232
|
+
return;
|
|
233
|
+
if (this.isSinglecast()) {
|
|
234
|
+
this.tryGetValueDB()?.setValue(currentStateValueId, targetValue);
|
|
235
|
+
} else if (this.isMulticast()) {
|
|
236
|
+
const affectedNodes = this.endpoint.node.physicalNodes.filter((node) => node.getEndpoint(this.endpoint.index)?.supportsCC(this.ccId));
|
|
237
|
+
for (const node of affectedNodes) {
|
|
238
|
+
this.host.tryGetValueDB(node.id)?.setValue(currentStateValueId, targetValue);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
verifyChanges: () => {
|
|
243
|
+
if (this.isSinglecast()) {
|
|
244
|
+
this.schedulePoll(currentStateValueId, targetValue);
|
|
245
|
+
} else {
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
} else if (BarrierOperatorCCValues.signalingState.is(valueId)) {
|
|
250
|
+
const subsystemType = propertyKey;
|
|
251
|
+
const signalingStateValueId = BarrierOperatorCCValues.signalingState(subsystemType).endpoint(this.endpoint.index);
|
|
252
|
+
return {
|
|
253
|
+
verifyChanges: () => {
|
|
254
|
+
if (this.isSinglecast()) {
|
|
255
|
+
this.schedulePoll(signalingStateValueId, value, {
|
|
256
|
+
// Signaling state changes are fast
|
|
257
|
+
transition: "fast"
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
get [import_API.POLL_VALUE]() {
|
|
265
|
+
return async function({ property, propertyKey }) {
|
|
266
|
+
switch (property) {
|
|
267
|
+
case "currentState":
|
|
268
|
+
case "position":
|
|
269
|
+
return (await this.get())?.[property];
|
|
270
|
+
case "signalingState":
|
|
271
|
+
if (propertyKey == void 0) {
|
|
272
|
+
(0, import_API.throwMissingPropertyKey)(this.ccId, property);
|
|
273
|
+
} else if (typeof propertyKey !== "number") {
|
|
274
|
+
(0, import_API.throwUnsupportedPropertyKey)(this.ccId, property, propertyKey);
|
|
275
|
+
}
|
|
276
|
+
return this.getEventSignaling(propertyKey);
|
|
277
|
+
default:
|
|
278
|
+
(0, import_API.throwUnsupportedProperty)(this.ccId, property);
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
BarrierOperatorCCAPI = __decorate([
|
|
284
|
+
(0, import_CommandClassDecorators.API)(import_safe.CommandClasses["Barrier Operator"])
|
|
285
|
+
], BarrierOperatorCCAPI);
|
|
286
|
+
let BarrierOperatorCC = class BarrierOperatorCC2 extends import_CommandClass.CommandClass {
|
|
287
|
+
async interview(ctx) {
|
|
288
|
+
const node = this.getNode(ctx);
|
|
289
|
+
const endpoint = this.getEndpoint(ctx);
|
|
290
|
+
const api = import_API.CCAPI.create(import_safe.CommandClasses["Barrier Operator"], ctx, endpoint).withOptions({
|
|
291
|
+
priority: import_safe.MessagePriority.NodeQuery
|
|
292
|
+
});
|
|
293
|
+
ctx.logNode(node.id, {
|
|
294
|
+
endpoint: this.endpointIndex,
|
|
295
|
+
message: `Interviewing ${this.ccName}...`,
|
|
296
|
+
direction: "none"
|
|
297
|
+
});
|
|
298
|
+
this.ensureMetadata(ctx, BarrierOperatorCCValues.targetState);
|
|
299
|
+
ctx.logNode(node.id, {
|
|
300
|
+
message: "Querying signaling capabilities...",
|
|
301
|
+
direction: "outbound"
|
|
302
|
+
});
|
|
303
|
+
const resp = await api.getSignalingCapabilities();
|
|
304
|
+
if (resp) {
|
|
305
|
+
ctx.logNode(node.id, {
|
|
306
|
+
message: `Received supported subsystem types: ${resp.map((t) => `
|
|
307
|
+
\xB7 ${(0, import_safe3.getEnumMemberName)(import_Types.SubsystemType, t)}`).join("")}`,
|
|
308
|
+
direction: "inbound"
|
|
309
|
+
});
|
|
310
|
+
for (const subsystemType of resp) {
|
|
311
|
+
if (!(0, import_safe3.isEnumMember)(import_Types.SubsystemType, subsystemType))
|
|
312
|
+
continue;
|
|
313
|
+
ctx.logNode(node.id, {
|
|
314
|
+
message: `Enabling subsystem ${(0, import_safe3.getEnumMemberName)(import_Types.SubsystemType, subsystemType)}...`,
|
|
315
|
+
direction: "outbound"
|
|
316
|
+
});
|
|
317
|
+
await api.setEventSignaling(subsystemType, import_Types.SubsystemState.On).catch(import_safe3.noop);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
await this.refreshValues(ctx);
|
|
321
|
+
this.setInterviewComplete(ctx, true);
|
|
322
|
+
}
|
|
323
|
+
async refreshValues(ctx) {
|
|
324
|
+
const node = this.getNode(ctx);
|
|
325
|
+
const endpoint = this.getEndpoint(ctx);
|
|
326
|
+
const api = import_API.CCAPI.create(import_safe.CommandClasses["Barrier Operator"], ctx, endpoint).withOptions({
|
|
327
|
+
priority: import_safe.MessagePriority.NodeQuery
|
|
328
|
+
});
|
|
329
|
+
const supportedSubsystems = this.getValue(ctx, BarrierOperatorCCValues.supportedSubsystemTypes) ?? [];
|
|
330
|
+
for (const subsystemType of supportedSubsystems) {
|
|
331
|
+
if (!(0, import_safe3.isEnumMember)(import_Types.SubsystemType, subsystemType))
|
|
332
|
+
continue;
|
|
333
|
+
ctx.logNode(node.id, {
|
|
334
|
+
message: `Querying event signaling state for subsystem ${(0, import_safe3.getEnumMemberName)(import_Types.SubsystemType, subsystemType)}...`,
|
|
335
|
+
direction: "outbound"
|
|
336
|
+
});
|
|
337
|
+
const state = await api.getEventSignaling(subsystemType);
|
|
338
|
+
if (state != void 0) {
|
|
339
|
+
ctx.logNode(node.id, {
|
|
340
|
+
message: `Subsystem ${(0, import_safe3.getEnumMemberName)(import_Types.SubsystemType, subsystemType)} has state ${(0, import_safe3.getEnumMemberName)(import_Types.SubsystemState, state)}`,
|
|
341
|
+
direction: "inbound"
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
ctx.logNode(node.id, {
|
|
346
|
+
message: "querying current barrier state...",
|
|
347
|
+
direction: "outbound"
|
|
348
|
+
});
|
|
349
|
+
await api.get();
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
BarrierOperatorCC = __decorate([
|
|
353
|
+
(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses["Barrier Operator"]),
|
|
354
|
+
(0, import_CommandClassDecorators.implementedVersion)(1),
|
|
355
|
+
(0, import_CommandClassDecorators.ccValues)(BarrierOperatorCCValues)
|
|
356
|
+
], BarrierOperatorCC);
|
|
357
|
+
let BarrierOperatorCCSet = class BarrierOperatorCCSet2 extends BarrierOperatorCC {
|
|
358
|
+
constructor(options) {
|
|
359
|
+
super(options);
|
|
360
|
+
this.targetState = options.targetState;
|
|
361
|
+
}
|
|
362
|
+
static from(_raw, _ctx) {
|
|
363
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
364
|
+
}
|
|
365
|
+
targetState;
|
|
366
|
+
serialize(ctx) {
|
|
367
|
+
this.payload = import_safe2.Bytes.from([this.targetState]);
|
|
368
|
+
return super.serialize(ctx);
|
|
369
|
+
}
|
|
370
|
+
toLogEntry(ctx) {
|
|
371
|
+
return {
|
|
372
|
+
...super.toLogEntry(ctx),
|
|
373
|
+
message: { "target state": this.targetState }
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
};
|
|
377
|
+
BarrierOperatorCCSet = __decorate([
|
|
378
|
+
(0, import_CommandClassDecorators.CCCommand)(import_Types.BarrierOperatorCommand.Set),
|
|
379
|
+
(0, import_CommandClassDecorators.useSupervision)()
|
|
380
|
+
], BarrierOperatorCCSet);
|
|
381
|
+
let BarrierOperatorCCReport = BarrierOperatorCCReport_1 = class BarrierOperatorCCReport2 extends BarrierOperatorCC {
|
|
382
|
+
constructor(options) {
|
|
383
|
+
super(options);
|
|
384
|
+
this.position = options.position;
|
|
385
|
+
this.currentState = options.currentState;
|
|
386
|
+
}
|
|
387
|
+
static from(raw, ctx) {
|
|
388
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 1);
|
|
389
|
+
const payloadValue = raw.payload[0];
|
|
390
|
+
let position;
|
|
391
|
+
if (payloadValue <= 99) {
|
|
392
|
+
position = payloadValue;
|
|
393
|
+
} else if (payloadValue === 255) {
|
|
394
|
+
position = 100;
|
|
395
|
+
} else {
|
|
396
|
+
position = import_safe.UNKNOWN_STATE;
|
|
397
|
+
}
|
|
398
|
+
let currentState;
|
|
399
|
+
if (payloadValue === import_Types.BarrierState.Closed || payloadValue >= import_Types.BarrierState.Closing) {
|
|
400
|
+
currentState = payloadValue;
|
|
401
|
+
} else if (payloadValue > 0 && payloadValue <= 99) {
|
|
402
|
+
currentState = import_Types.BarrierState.Stopped;
|
|
403
|
+
} else {
|
|
404
|
+
currentState = import_safe.UNKNOWN_STATE;
|
|
405
|
+
}
|
|
406
|
+
return new BarrierOperatorCCReport_1({
|
|
407
|
+
nodeId: ctx.sourceNodeId,
|
|
408
|
+
position,
|
|
409
|
+
currentState
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
currentState;
|
|
413
|
+
position;
|
|
414
|
+
toLogEntry(ctx) {
|
|
415
|
+
return {
|
|
416
|
+
...super.toLogEntry(ctx),
|
|
417
|
+
message: {
|
|
418
|
+
"barrier position": (0, import_safe.maybeUnknownToString)(this.position),
|
|
419
|
+
"barrier state": this.currentState != void 0 ? (0, import_safe3.getEnumMemberName)(import_Types.BarrierState, this.currentState) : "unknown"
|
|
420
|
+
}
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
__decorate([
|
|
425
|
+
(0, import_CommandClassDecorators.ccValue)(BarrierOperatorCCValues.currentState)
|
|
426
|
+
], BarrierOperatorCCReport.prototype, "currentState", void 0);
|
|
427
|
+
__decorate([
|
|
428
|
+
(0, import_CommandClassDecorators.ccValue)(BarrierOperatorCCValues.position)
|
|
429
|
+
], BarrierOperatorCCReport.prototype, "position", void 0);
|
|
430
|
+
BarrierOperatorCCReport = BarrierOperatorCCReport_1 = __decorate([
|
|
431
|
+
(0, import_CommandClassDecorators.CCCommand)(import_Types.BarrierOperatorCommand.Report)
|
|
432
|
+
], BarrierOperatorCCReport);
|
|
433
|
+
let BarrierOperatorCCGet = class BarrierOperatorCCGet2 extends BarrierOperatorCC {
|
|
434
|
+
};
|
|
435
|
+
BarrierOperatorCCGet = __decorate([
|
|
436
|
+
(0, import_CommandClassDecorators.CCCommand)(import_Types.BarrierOperatorCommand.Get),
|
|
437
|
+
(0, import_CommandClassDecorators.expectedCCResponse)(BarrierOperatorCCReport)
|
|
438
|
+
], BarrierOperatorCCGet);
|
|
439
|
+
let BarrierOperatorCCSignalingCapabilitiesReport = BarrierOperatorCCSignalingCapabilitiesReport_1 = class BarrierOperatorCCSignalingCapabilitiesReport2 extends BarrierOperatorCC {
|
|
440
|
+
constructor(options) {
|
|
441
|
+
super(options);
|
|
442
|
+
this.supportedSubsystemTypes = options.supportedSubsystemTypes;
|
|
443
|
+
}
|
|
444
|
+
static from(raw, ctx) {
|
|
445
|
+
const supportedSubsystemTypes = (0, import_safe.parseBitMask)(raw.payload, import_Types.SubsystemType.Audible);
|
|
446
|
+
return new BarrierOperatorCCSignalingCapabilitiesReport_1({
|
|
447
|
+
nodeId: ctx.sourceNodeId,
|
|
448
|
+
supportedSubsystemTypes
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
supportedSubsystemTypes;
|
|
452
|
+
toLogEntry(ctx) {
|
|
453
|
+
return {
|
|
454
|
+
...super.toLogEntry(ctx),
|
|
455
|
+
message: {
|
|
456
|
+
"supported types": this.supportedSubsystemTypes.map((t) => `
|
|
457
|
+
\xB7 ${(0, import_safe3.getEnumMemberName)(import_Types.SubsystemType, t)}`).join("")
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
|
+
__decorate([
|
|
463
|
+
(0, import_CommandClassDecorators.ccValue)(BarrierOperatorCCValues.supportedSubsystemTypes)
|
|
464
|
+
], BarrierOperatorCCSignalingCapabilitiesReport.prototype, "supportedSubsystemTypes", void 0);
|
|
465
|
+
BarrierOperatorCCSignalingCapabilitiesReport = BarrierOperatorCCSignalingCapabilitiesReport_1 = __decorate([
|
|
466
|
+
(0, import_CommandClassDecorators.CCCommand)(import_Types.BarrierOperatorCommand.SignalingCapabilitiesReport)
|
|
467
|
+
], BarrierOperatorCCSignalingCapabilitiesReport);
|
|
468
|
+
let BarrierOperatorCCSignalingCapabilitiesGet = class BarrierOperatorCCSignalingCapabilitiesGet2 extends BarrierOperatorCC {
|
|
469
|
+
};
|
|
470
|
+
BarrierOperatorCCSignalingCapabilitiesGet = __decorate([
|
|
471
|
+
(0, import_CommandClassDecorators.CCCommand)(import_Types.BarrierOperatorCommand.SignalingCapabilitiesGet),
|
|
472
|
+
(0, import_CommandClassDecorators.expectedCCResponse)(BarrierOperatorCCSignalingCapabilitiesReport)
|
|
473
|
+
], BarrierOperatorCCSignalingCapabilitiesGet);
|
|
474
|
+
let BarrierOperatorCCEventSignalingSet = class BarrierOperatorCCEventSignalingSet2 extends BarrierOperatorCC {
|
|
475
|
+
constructor(options) {
|
|
476
|
+
super(options);
|
|
477
|
+
this.subsystemType = options.subsystemType;
|
|
478
|
+
this.subsystemState = options.subsystemState;
|
|
479
|
+
}
|
|
480
|
+
static from(_raw, _ctx) {
|
|
481
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
482
|
+
}
|
|
483
|
+
subsystemType;
|
|
484
|
+
subsystemState;
|
|
485
|
+
serialize(ctx) {
|
|
486
|
+
this.payload = import_safe2.Bytes.from([this.subsystemType, this.subsystemState]);
|
|
487
|
+
return super.serialize(ctx);
|
|
488
|
+
}
|
|
489
|
+
toLogEntry(ctx) {
|
|
490
|
+
return {
|
|
491
|
+
...super.toLogEntry(ctx),
|
|
492
|
+
message: {
|
|
493
|
+
"subsystem type": (0, import_safe3.getEnumMemberName)(import_Types.SubsystemType, this.subsystemType),
|
|
494
|
+
"subsystem state": (0, import_safe3.getEnumMemberName)(import_Types.SubsystemState, this.subsystemState)
|
|
495
|
+
}
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
};
|
|
499
|
+
BarrierOperatorCCEventSignalingSet = __decorate([
|
|
500
|
+
(0, import_CommandClassDecorators.CCCommand)(import_Types.BarrierOperatorCommand.EventSignalingSet),
|
|
501
|
+
(0, import_CommandClassDecorators.useSupervision)()
|
|
502
|
+
], BarrierOperatorCCEventSignalingSet);
|
|
503
|
+
let BarrierOperatorCCEventSignalingReport = BarrierOperatorCCEventSignalingReport_1 = class BarrierOperatorCCEventSignalingReport2 extends BarrierOperatorCC {
|
|
504
|
+
constructor(options) {
|
|
505
|
+
super(options);
|
|
506
|
+
this.subsystemType = options.subsystemType;
|
|
507
|
+
this.subsystemState = options.subsystemState;
|
|
508
|
+
}
|
|
509
|
+
static from(raw, ctx) {
|
|
510
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 2);
|
|
511
|
+
const subsystemType = raw.payload[0];
|
|
512
|
+
const subsystemState = raw.payload[1];
|
|
513
|
+
return new BarrierOperatorCCEventSignalingReport_1({
|
|
514
|
+
nodeId: ctx.sourceNodeId,
|
|
515
|
+
subsystemType,
|
|
516
|
+
subsystemState
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
persistValues(ctx) {
|
|
520
|
+
if (!super.persistValues(ctx))
|
|
521
|
+
return false;
|
|
522
|
+
const signalingStateValue = BarrierOperatorCCValues.signalingState(this.subsystemType);
|
|
523
|
+
this.ensureMetadata(ctx, signalingStateValue);
|
|
524
|
+
this.setValue(ctx, signalingStateValue, this.subsystemState);
|
|
525
|
+
return true;
|
|
526
|
+
}
|
|
527
|
+
subsystemType;
|
|
528
|
+
subsystemState;
|
|
529
|
+
toLogEntry(ctx) {
|
|
530
|
+
return {
|
|
531
|
+
...super.toLogEntry(ctx),
|
|
532
|
+
message: {
|
|
533
|
+
"subsystem type": (0, import_safe3.getEnumMemberName)(import_Types.SubsystemType, this.subsystemType),
|
|
534
|
+
"subsystem state": (0, import_safe3.getEnumMemberName)(import_Types.SubsystemState, this.subsystemState)
|
|
535
|
+
}
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
};
|
|
539
|
+
BarrierOperatorCCEventSignalingReport = BarrierOperatorCCEventSignalingReport_1 = __decorate([
|
|
540
|
+
(0, import_CommandClassDecorators.CCCommand)(import_Types.BarrierOperatorCommand.EventSignalingReport)
|
|
541
|
+
], BarrierOperatorCCEventSignalingReport);
|
|
542
|
+
let BarrierOperatorCCEventSignalingGet = class BarrierOperatorCCEventSignalingGet2 extends BarrierOperatorCC {
|
|
543
|
+
constructor(options) {
|
|
544
|
+
super(options);
|
|
545
|
+
this.subsystemType = options.subsystemType;
|
|
546
|
+
}
|
|
547
|
+
static from(_raw, _ctx) {
|
|
548
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
549
|
+
}
|
|
550
|
+
subsystemType;
|
|
551
|
+
serialize(ctx) {
|
|
552
|
+
this.payload = import_safe2.Bytes.from([this.subsystemType]);
|
|
553
|
+
return super.serialize(ctx);
|
|
554
|
+
}
|
|
555
|
+
toLogEntry(ctx) {
|
|
556
|
+
return {
|
|
557
|
+
...super.toLogEntry(ctx),
|
|
558
|
+
message: {
|
|
559
|
+
"subsystem type": (0, import_safe3.getEnumMemberName)(import_Types.SubsystemType, this.subsystemType)
|
|
560
|
+
}
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
};
|
|
564
|
+
BarrierOperatorCCEventSignalingGet = __decorate([
|
|
565
|
+
(0, import_CommandClassDecorators.CCCommand)(import_Types.BarrierOperatorCommand.EventSignalingGet),
|
|
566
|
+
(0, import_CommandClassDecorators.expectedCCResponse)(BarrierOperatorCCEventSignalingReport)
|
|
567
|
+
], BarrierOperatorCCEventSignalingGet);
|
|
568
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
569
|
+
0 && (module.exports = {
|
|
570
|
+
BarrierOperatorCC,
|
|
571
|
+
BarrierOperatorCCAPI,
|
|
572
|
+
BarrierOperatorCCEventSignalingGet,
|
|
573
|
+
BarrierOperatorCCEventSignalingReport,
|
|
574
|
+
BarrierOperatorCCEventSignalingSet,
|
|
575
|
+
BarrierOperatorCCGet,
|
|
576
|
+
BarrierOperatorCCReport,
|
|
577
|
+
BarrierOperatorCCSet,
|
|
578
|
+
BarrierOperatorCCSignalingCapabilitiesGet,
|
|
579
|
+
BarrierOperatorCCSignalingCapabilitiesReport,
|
|
580
|
+
BarrierOperatorCCValues
|
|
581
|
+
});
|
|
582
|
+
//# sourceMappingURL=BarrierOperatorCC.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/cc/BarrierOperatorCC.ts"],
|
|
4
|
+
"sourcesContent": ["import {\n\tCommandClasses,\n\ttype MaybeNotKnown,\n\ttype MaybeUnknown,\n\ttype MessageOrCCLogEntry,\n\tMessagePriority,\n\ttype SupervisionResult,\n\tUNKNOWN_STATE,\n\tValueMetadata,\n\ttype WithAddress,\n\tZWaveError,\n\tZWaveErrorCodes,\n\tenumValuesToMetadataStates,\n\tmaybeUnknownToString,\n\tparseBitMask,\n\tvalidatePayload,\n} from \"@zwave-js/core/safe\";\nimport type {\n\tCCEncodingContext,\n\tCCParsingContext,\n\tGetValueDB,\n} from \"@zwave-js/host/safe\";\nimport { Bytes } from \"@zwave-js/shared/safe\";\nimport {\n\tgetEnumMemberName,\n\tisEnumMember,\n\tnoop,\n\tpick,\n} from \"@zwave-js/shared/safe\";\nimport { validateArgs } from \"@zwave-js/transformers\";\nimport {\n\tCCAPI,\n\tPOLL_VALUE,\n\ttype PollValueImplementation,\n\tSET_VALUE,\n\tSET_VALUE_HOOKS,\n\ttype SetValueImplementation,\n\ttype SetValueImplementationHooksFactory,\n\tthrowMissingPropertyKey,\n\tthrowUnsupportedProperty,\n\tthrowUnsupportedPropertyKey,\n\tthrowWrongValueType,\n} from \"../lib/API.js\";\nimport {\n\ttype CCRaw,\n\tCommandClass,\n\ttype InterviewContext,\n\ttype PersistValuesContext,\n\ttype RefreshValuesContext,\n} from \"../lib/CommandClass.js\";\nimport {\n\tAPI,\n\tCCCommand,\n\tccValue,\n\tccValues,\n\tcommandClass,\n\texpectedCCResponse,\n\timplementedVersion,\n\tuseSupervision,\n} from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport {\n\tBarrierOperatorCommand,\n\tBarrierState,\n\tSubsystemState,\n\tSubsystemType,\n} from \"../lib/_Types.js\";\n\nexport const BarrierOperatorCCValues = Object.freeze({\n\t...V.defineStaticCCValues(CommandClasses[\"Barrier Operator\"], {\n\t\t...V.staticProperty(\"supportedSubsystemTypes\", undefined, {\n\t\t\tinternal: true,\n\t\t}),\n\n\t\t...V.staticProperty(\n\t\t\t\"position\",\n\t\t\t{\n\t\t\t\t...ValueMetadata.ReadOnlyUInt8,\n\t\t\t\tlabel: \"Barrier Position\",\n\t\t\t\tunit: \"%\",\n\t\t\t\tmax: 100,\n\t\t\t} as const,\n\t\t),\n\n\t\t...V.staticProperty(\n\t\t\t\"targetState\",\n\t\t\t{\n\t\t\t\t...ValueMetadata.UInt8,\n\t\t\t\tlabel: \"Target Barrier State\",\n\t\t\t\tstates: enumValuesToMetadataStates(BarrierState, [\n\t\t\t\t\tBarrierState.Open,\n\t\t\t\t\tBarrierState.Closed,\n\t\t\t\t]),\n\t\t\t} as const,\n\t\t),\n\n\t\t...V.staticProperty(\n\t\t\t\"currentState\",\n\t\t\t{\n\t\t\t\t...ValueMetadata.ReadOnlyUInt8,\n\t\t\t\tlabel: \"Current Barrier State\",\n\t\t\t\tstates: enumValuesToMetadataStates(BarrierState),\n\t\t\t} as const,\n\t\t),\n\t}),\n\n\t...V.defineDynamicCCValues(CommandClasses[\"Barrier Operator\"], {\n\t\t...V.dynamicPropertyAndKeyWithName(\n\t\t\t\"signalingState\",\n\t\t\t\"signalingState\",\n\t\t\t(subsystemType: SubsystemType) => subsystemType,\n\t\t\t({ property, propertyKey }) =>\n\t\t\t\tproperty === \"signalingState\"\n\t\t\t\t&& typeof propertyKey === \"number\",\n\t\t\t(subsystemType: SubsystemType) => ({\n\t\t\t\t...ValueMetadata.UInt8,\n\t\t\t\tlabel: `Signaling State (${\n\t\t\t\t\tgetEnumMemberName(\n\t\t\t\t\t\tSubsystemType,\n\t\t\t\t\t\tsubsystemType,\n\t\t\t\t\t)\n\t\t\t\t})`,\n\t\t\t\tstates: enumValuesToMetadataStates(SubsystemState),\n\t\t\t} as const),\n\t\t),\n\t}),\n});\n\n@API(CommandClasses[\"Barrier Operator\"])\nexport class BarrierOperatorCCAPI extends CCAPI {\n\tpublic supportsCommand(\n\t\tcmd: BarrierOperatorCommand,\n\t): MaybeNotKnown<boolean> {\n\t\tswitch (cmd) {\n\t\t\tcase BarrierOperatorCommand.Get:\n\t\t\tcase BarrierOperatorCommand.Set:\n\t\t\tcase BarrierOperatorCommand.SignalingCapabilitiesGet:\n\t\t\tcase BarrierOperatorCommand.EventSignalingGet:\n\t\t\tcase BarrierOperatorCommand.EventSignalingSet:\n\t\t\t\treturn true; // This is mandatory\n\t\t}\n\t\treturn super.supportsCommand(cmd);\n\t}\n\n\t// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\n\tpublic async get() {\n\t\tthis.assertSupportsCommand(\n\t\t\tBarrierOperatorCommand,\n\t\t\tBarrierOperatorCommand.Get,\n\t\t);\n\n\t\tconst cc = new BarrierOperatorCCGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t});\n\t\tconst response = await this.host.sendCommand<\n\t\t\tBarrierOperatorCCReport\n\t\t>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\t\tif (response) {\n\t\t\treturn pick(response, [\"currentState\", \"position\"]);\n\t\t}\n\t}\n\n\t@validateArgs({ strictEnums: true })\n\tpublic async set(\n\t\ttargetState: BarrierState.Open | BarrierState.Closed,\n\t): Promise<SupervisionResult | undefined> {\n\t\tthis.assertSupportsCommand(\n\t\t\tBarrierOperatorCommand,\n\t\t\tBarrierOperatorCommand.Set,\n\t\t);\n\n\t\tconst cc = new BarrierOperatorCCSet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\ttargetState,\n\t\t});\n\t\treturn this.host.sendCommand(cc, this.commandOptions);\n\t}\n\n\t@validateArgs()\n\tpublic async getSignalingCapabilities(): Promise<\n\t\tMaybeNotKnown<readonly SubsystemType[]>\n\t> {\n\t\tthis.assertSupportsCommand(\n\t\t\tBarrierOperatorCommand,\n\t\t\tBarrierOperatorCommand.SignalingCapabilitiesGet,\n\t\t);\n\n\t\tconst cc = new BarrierOperatorCCSignalingCapabilitiesGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t});\n\t\tconst response = await this.host.sendCommand<\n\t\t\tBarrierOperatorCCSignalingCapabilitiesReport\n\t\t>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\t\treturn response?.supportedSubsystemTypes;\n\t}\n\n\t@validateArgs({ strictEnums: true })\n\tpublic async getEventSignaling(\n\t\tsubsystemType: SubsystemType,\n\t): Promise<MaybeNotKnown<SubsystemState>> {\n\t\tthis.assertSupportsCommand(\n\t\t\tBarrierOperatorCommand,\n\t\t\tBarrierOperatorCommand.EventSignalingGet,\n\t\t);\n\n\t\tconst cc = new BarrierOperatorCCEventSignalingGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\tsubsystemType,\n\t\t});\n\t\tconst response = await this.host.sendCommand<\n\t\t\tBarrierOperatorCCEventSignalingReport\n\t\t>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\t\treturn response?.subsystemState;\n\t}\n\n\t@validateArgs({ strictEnums: true })\n\tpublic async setEventSignaling(\n\t\tsubsystemType: SubsystemType,\n\t\tsubsystemState: SubsystemState,\n\t): Promise<SupervisionResult | undefined> {\n\t\tthis.assertSupportsCommand(\n\t\t\tBarrierOperatorCommand,\n\t\t\tBarrierOperatorCommand.EventSignalingSet,\n\t\t);\n\n\t\tconst cc = new BarrierOperatorCCEventSignalingSet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\tsubsystemType,\n\t\t\tsubsystemState,\n\t\t});\n\n\t\treturn this.host.sendCommand(cc, this.commandOptions);\n\t}\n\n\tprotected override get [SET_VALUE](): SetValueImplementation {\n\t\treturn async function(\n\t\t\tthis: BarrierOperatorCCAPI,\n\t\t\t{ property, propertyKey },\n\t\t\tvalue,\n\t\t) {\n\t\t\tif (property === \"targetState\") {\n\t\t\t\tif (typeof value !== \"number\") {\n\t\t\t\t\tthrowWrongValueType(\n\t\t\t\t\t\tthis.ccId,\n\t\t\t\t\t\tproperty,\n\t\t\t\t\t\t\"number\",\n\t\t\t\t\t\ttypeof value,\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tconst targetValue = value === BarrierState.Closed\n\t\t\t\t\t? BarrierState.Closed\n\t\t\t\t\t: BarrierState.Open;\n\t\t\t\treturn this.set(targetValue);\n\t\t\t} else if (property === \"signalingState\") {\n\t\t\t\tif (propertyKey == undefined) {\n\t\t\t\t\tthrowMissingPropertyKey(this.ccId, property);\n\t\t\t\t} else if (typeof propertyKey !== \"number\") {\n\t\t\t\t\tthrowUnsupportedPropertyKey(\n\t\t\t\t\t\tthis.ccId,\n\t\t\t\t\t\tproperty,\n\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tif (typeof value !== \"number\") {\n\t\t\t\t\tthrowWrongValueType(\n\t\t\t\t\t\tthis.ccId,\n\t\t\t\t\t\tproperty,\n\t\t\t\t\t\t\"number\",\n\t\t\t\t\t\ttypeof value,\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\treturn this.setEventSignaling(propertyKey, value);\n\t\t\t} else {\n\t\t\t\tthrowUnsupportedProperty(this.ccId, property);\n\t\t\t}\n\t\t};\n\t}\n\n\tprotected [SET_VALUE_HOOKS]: SetValueImplementationHooksFactory = (\n\t\t{ property, propertyKey },\n\t\tvalue,\n\t\t_options,\n\t) => {\n\t\tconst valueId = {\n\t\t\tcommandClass: this.ccId,\n\t\t\tproperty,\n\t\t\tpropertyKey,\n\t\t};\n\n\t\tif (BarrierOperatorCCValues.targetState.is(valueId)) {\n\t\t\tconst currentStateValueId = BarrierOperatorCCValues.currentState\n\t\t\t\t.endpoint(\n\t\t\t\t\tthis.endpoint.index,\n\t\t\t\t);\n\n\t\t\tconst targetValue = value === BarrierState.Closed\n\t\t\t\t? BarrierState.Closed\n\t\t\t\t: BarrierState.Open;\n\n\t\t\treturn {\n\t\t\t\t// Barrier Operator commands may take some time to be executed.\n\t\t\t\t// Therefore we try to supervise the command execution and delay the\n\t\t\t\t// optimistic update until the final result is received.\n\t\t\t\tsupervisionDelayedUpdates: true,\n\t\t\t\tsupervisionOnSuccess: () => {\n\t\t\t\t\tthis.tryGetValueDB()?.setValue(\n\t\t\t\t\t\tcurrentStateValueId,\n\t\t\t\t\t\ttargetValue,\n\t\t\t\t\t);\n\t\t\t\t},\n\t\t\t\tsupervisionOnFailure: async () => {\n\t\t\t\t\t// The command failed, so now we don't know the status - refresh the current value\n\t\t\t\t\ttry {\n\t\t\t\t\t\tawait this.get();\n\t\t\t\t\t} catch {\n\t\t\t\t\t\t// ignore\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\toptimisticallyUpdateRelatedValues: (\n\t\t\t\t\tsupervisedAndSuccessful,\n\t\t\t\t) => {\n\t\t\t\t\t// For barriers, do not update the current value unless we actually know the command was successful\n\t\t\t\t\tif (!supervisedAndSuccessful) return;\n\n\t\t\t\t\tif (this.isSinglecast()) {\n\t\t\t\t\t\tthis.tryGetValueDB()?.setValue(\n\t\t\t\t\t\t\tcurrentStateValueId,\n\t\t\t\t\t\t\ttargetValue,\n\t\t\t\t\t\t);\n\t\t\t\t\t} else if (this.isMulticast()) {\n\t\t\t\t\t\t// Figure out which nodes were affected by this command\n\t\t\t\t\t\tconst affectedNodes = this.endpoint.node.physicalNodes\n\t\t\t\t\t\t\t.filter((node) =>\n\t\t\t\t\t\t\t\tnode\n\t\t\t\t\t\t\t\t\t.getEndpoint(this.endpoint.index)\n\t\t\t\t\t\t\t\t\t?.supportsCC(this.ccId)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t// and optimistically update the currentValue\n\t\t\t\t\t\tfor (const node of affectedNodes) {\n\t\t\t\t\t\t\tthis.host\n\t\t\t\t\t\t\t\t.tryGetValueDB(node.id)\n\t\t\t\t\t\t\t\t?.setValue(currentStateValueId, targetValue);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\tverifyChanges: () => {\n\t\t\t\t\tif (this.isSinglecast()) {\n\t\t\t\t\t\t// We query currentValue instead of targetValue to make sure that unsolicited updates cancel the scheduled poll\n\t\t\t\t\t\tthis.schedulePoll(currentStateValueId, targetValue);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// For multicasts, do not schedule a refresh - this could cause a LOT of traffic\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t};\n\t\t} else if (BarrierOperatorCCValues.signalingState.is(valueId)) {\n\t\t\tconst subsystemType = propertyKey as SubsystemType;\n\t\t\tconst signalingStateValueId = BarrierOperatorCCValues\n\t\t\t\t.signalingState(subsystemType).endpoint(\n\t\t\t\t\tthis.endpoint.index,\n\t\t\t\t);\n\n\t\t\treturn {\n\t\t\t\tverifyChanges: () => {\n\t\t\t\t\tif (this.isSinglecast()) {\n\t\t\t\t\t\tthis.schedulePoll(signalingStateValueId, value, {\n\t\t\t\t\t\t\t// Signaling state changes are fast\n\t\t\t\t\t\t\ttransition: \"fast\",\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\t};\n\n\tprotected get [POLL_VALUE](): PollValueImplementation {\n\t\treturn async function(\n\t\t\tthis: BarrierOperatorCCAPI,\n\t\t\t{ property, propertyKey },\n\t\t) {\n\t\t\tswitch (property) {\n\t\t\t\tcase \"currentState\":\n\t\t\t\tcase \"position\":\n\t\t\t\t\treturn (await this.get())?.[property];\n\t\t\t\tcase \"signalingState\":\n\t\t\t\t\tif (propertyKey == undefined) {\n\t\t\t\t\t\tthrowMissingPropertyKey(this.ccId, property);\n\t\t\t\t\t} else if (typeof propertyKey !== \"number\") {\n\t\t\t\t\t\tthrowUnsupportedPropertyKey(\n\t\t\t\t\t\t\tthis.ccId,\n\t\t\t\t\t\t\tproperty,\n\t\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\treturn this.getEventSignaling(propertyKey);\n\t\t\t\tdefault:\n\t\t\t\t\tthrowUnsupportedProperty(this.ccId, property);\n\t\t\t}\n\t\t};\n\t}\n}\n\n@commandClass(CommandClasses[\"Barrier Operator\"])\n@implementedVersion(1)\n@ccValues(BarrierOperatorCCValues)\nexport class BarrierOperatorCC extends CommandClass {\n\tdeclare ccCommand: BarrierOperatorCommand;\n\n\tpublic async interview(\n\t\tctx: InterviewContext,\n\t): Promise<void> {\n\t\tconst node = this.getNode(ctx)!;\n\t\tconst endpoint = this.getEndpoint(ctx)!;\n\t\tconst api = CCAPI.create(\n\t\t\tCommandClasses[\"Barrier Operator\"],\n\t\t\tctx,\n\t\t\tendpoint,\n\t\t).withOptions({\n\t\t\tpriority: MessagePriority.NodeQuery,\n\t\t});\n\n\t\tctx.logNode(node.id, {\n\t\t\tendpoint: this.endpointIndex,\n\t\t\tmessage: `Interviewing ${this.ccName}...`,\n\t\t\tdirection: \"none\",\n\t\t});\n\n\t\t// Create targetState value if it does not exist\n\t\tthis.ensureMetadata(ctx, BarrierOperatorCCValues.targetState);\n\n\t\tctx.logNode(node.id, {\n\t\t\tmessage: \"Querying signaling capabilities...\",\n\t\t\tdirection: \"outbound\",\n\t\t});\n\t\tconst resp = await api.getSignalingCapabilities();\n\t\tif (resp) {\n\t\t\tctx.logNode(node.id, {\n\t\t\t\tmessage: `Received supported subsystem types: ${\n\t\t\t\t\tresp\n\t\t\t\t\t\t.map((t) =>\n\t\t\t\t\t\t\t`\\n\u00B7 ${getEnumMemberName(SubsystemType, t)}`\n\t\t\t\t\t\t)\n\t\t\t\t\t\t.join(\"\")\n\t\t\t\t}`,\n\t\t\t\tdirection: \"inbound\",\n\t\t\t});\n\n\t\t\t// Enable all supported subsystems\n\t\t\tfor (const subsystemType of resp) {\n\t\t\t\t// Some devices report invalid subsystem types, but the CC API checks\n\t\t\t\t// for valid values and throws otherwise.\n\t\t\t\tif (!isEnumMember(SubsystemType, subsystemType)) continue;\n\n\t\t\t\tctx.logNode(node.id, {\n\t\t\t\t\tmessage: `Enabling subsystem ${\n\t\t\t\t\t\tgetEnumMemberName(\n\t\t\t\t\t\t\tSubsystemType,\n\t\t\t\t\t\t\tsubsystemType,\n\t\t\t\t\t\t)\n\t\t\t\t\t}...`,\n\t\t\t\t\tdirection: \"outbound\",\n\t\t\t\t});\n\t\t\t\tawait api.setEventSignaling(subsystemType, SubsystemState.On)\n\t\t\t\t\t.catch(noop);\n\t\t\t}\n\t\t}\n\n\t\tawait this.refreshValues(ctx);\n\n\t\t// Remember that the interview is complete\n\t\tthis.setInterviewComplete(ctx, true);\n\t}\n\n\tpublic async refreshValues(\n\t\tctx: RefreshValuesContext,\n\t): Promise<void> {\n\t\tconst node = this.getNode(ctx)!;\n\t\tconst endpoint = this.getEndpoint(ctx)!;\n\t\tconst api = CCAPI.create(\n\t\t\tCommandClasses[\"Barrier Operator\"],\n\t\t\tctx,\n\t\t\tendpoint,\n\t\t).withOptions({\n\t\t\tpriority: MessagePriority.NodeQuery,\n\t\t});\n\n\t\tconst supportedSubsystems: SubsystemType[] = this.getValue(\n\t\t\tctx,\n\t\t\tBarrierOperatorCCValues.supportedSubsystemTypes,\n\t\t) ?? [];\n\n\t\tfor (const subsystemType of supportedSubsystems) {\n\t\t\t// Some devices report invalid subsystem types, but the CC API checks\n\t\t\t// for valid values and throws otherwise.\n\t\t\tif (!isEnumMember(SubsystemType, subsystemType)) continue;\n\n\t\t\tctx.logNode(node.id, {\n\t\t\t\tmessage: `Querying event signaling state for subsystem ${\n\t\t\t\t\tgetEnumMemberName(\n\t\t\t\t\t\tSubsystemType,\n\t\t\t\t\t\tsubsystemType,\n\t\t\t\t\t)\n\t\t\t\t}...`,\n\t\t\t\tdirection: \"outbound\",\n\t\t\t});\n\t\t\tconst state = await api.getEventSignaling(subsystemType);\n\t\t\tif (state != undefined) {\n\t\t\t\tctx.logNode(node.id, {\n\t\t\t\t\tmessage: `Subsystem ${\n\t\t\t\t\t\tgetEnumMemberName(\n\t\t\t\t\t\t\tSubsystemType,\n\t\t\t\t\t\t\tsubsystemType,\n\t\t\t\t\t\t)\n\t\t\t\t\t} has state ${getEnumMemberName(SubsystemState, state)}`,\n\t\t\t\t\tdirection: \"inbound\",\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tctx.logNode(node.id, {\n\t\t\tmessage: \"querying current barrier state...\",\n\t\t\tdirection: \"outbound\",\n\t\t});\n\t\tawait api.get();\n\t}\n}\n\n// @publicAPI\nexport interface BarrierOperatorCCSetOptions {\n\ttargetState: BarrierState.Open | BarrierState.Closed;\n}\n\n@CCCommand(BarrierOperatorCommand.Set)\n@useSupervision()\nexport class BarrierOperatorCCSet extends BarrierOperatorCC {\n\tpublic constructor(\n\t\toptions: WithAddress<BarrierOperatorCCSetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.targetState = options.targetState;\n\t}\n\n\tpublic static from(\n\t\t_raw: CCRaw,\n\t\t_ctx: CCParsingContext,\n\t): BarrierOperatorCCSet {\n\t\tthrow new ZWaveError(\n\t\t\t`${this.name}: deserialization not implemented`,\n\t\t\tZWaveErrorCodes.Deserialization_NotImplemented,\n\t\t);\n\n\t\t// return new BarrierOperatorCCSet({\n\t\t// \tnodeId: ctx.sourceNodeId,\n\t\t// });\n\t}\n\n\tpublic targetState: BarrierState.Open | BarrierState.Closed;\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = Bytes.from([this.targetState]);\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: { \"target state\": this.targetState },\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport interface BarrierOperatorCCReportOptions {\n\tposition: MaybeUnknown<number>;\n\tcurrentState: MaybeUnknown<BarrierState>;\n}\n\n@CCCommand(BarrierOperatorCommand.Report)\nexport class BarrierOperatorCCReport extends BarrierOperatorCC {\n\tpublic constructor(\n\t\toptions: WithAddress<BarrierOperatorCCReportOptions>,\n\t) {\n\t\tsuper(options);\n\n\t\t// TODO: Check implementation:\n\t\tthis.position = options.position;\n\t\tthis.currentState = options.currentState;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): BarrierOperatorCCReport {\n\t\tvalidatePayload(raw.payload.length >= 1);\n\t\t// The payload byte encodes information about the state and position in a single value\n\t\tconst payloadValue = raw.payload[0];\n\t\tlet position: MaybeUnknown<number>;\n\t\tif (payloadValue <= 99) {\n\t\t\t// known position\n\t\t\tposition = payloadValue;\n\t\t} else if (payloadValue === 255) {\n\t\t\t// known position, fully opened\n\t\t\tposition = 100;\n\t\t} else {\n\t\t\t// unknown position\n\t\t\tposition = UNKNOWN_STATE;\n\t\t}\n\n\t\tlet currentState: MaybeUnknown<BarrierState>;\n\t\tif (\n\t\t\tpayloadValue === BarrierState.Closed\n\t\t\t|| payloadValue >= BarrierState.Closing\n\t\t) {\n\t\t\t// predefined states\n\t\t\tcurrentState = payloadValue;\n\t\t} else if (payloadValue > 0 && payloadValue <= 99) {\n\t\t\t// stopped at exact position\n\t\t\tcurrentState = BarrierState.Stopped;\n\t\t} else {\n\t\t\t// invalid value, assume unknown\n\t\t\tcurrentState = UNKNOWN_STATE;\n\t\t}\n\n\t\treturn new BarrierOperatorCCReport({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tposition,\n\t\t\tcurrentState,\n\t\t});\n\t}\n\n\t@ccValue(BarrierOperatorCCValues.currentState)\n\tpublic readonly currentState: MaybeUnknown<BarrierState>;\n\n\t@ccValue(BarrierOperatorCCValues.position)\n\tpublic readonly position: MaybeUnknown<number>;\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"barrier position\": maybeUnknownToString(this.position),\n\t\t\t\t\"barrier state\": this.currentState != undefined\n\t\t\t\t\t? getEnumMemberName(BarrierState, this.currentState)\n\t\t\t\t\t: \"unknown\",\n\t\t\t},\n\t\t};\n\t}\n}\n\n@CCCommand(BarrierOperatorCommand.Get)\n@expectedCCResponse(BarrierOperatorCCReport)\nexport class BarrierOperatorCCGet extends BarrierOperatorCC {}\n\n// @publicAPI\nexport interface BarrierOperatorCCSignalingCapabilitiesReportOptions {\n\tsupportedSubsystemTypes: SubsystemType[];\n}\n\n@CCCommand(BarrierOperatorCommand.SignalingCapabilitiesReport)\nexport class BarrierOperatorCCSignalingCapabilitiesReport\n\textends BarrierOperatorCC\n{\n\tpublic constructor(\n\t\toptions: WithAddress<\n\t\t\tBarrierOperatorCCSignalingCapabilitiesReportOptions\n\t\t>,\n\t) {\n\t\tsuper(options);\n\n\t\t// TODO: Check implementation:\n\t\tthis.supportedSubsystemTypes = options.supportedSubsystemTypes;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): BarrierOperatorCCSignalingCapabilitiesReport {\n\t\tconst supportedSubsystemTypes: SubsystemType[] = parseBitMask(\n\t\t\traw.payload,\n\t\t\tSubsystemType.Audible,\n\t\t);\n\n\t\treturn new BarrierOperatorCCSignalingCapabilitiesReport({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tsupportedSubsystemTypes,\n\t\t});\n\t}\n\n\t@ccValue(BarrierOperatorCCValues.supportedSubsystemTypes)\n\tpublic readonly supportedSubsystemTypes: readonly SubsystemType[];\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"supported types\": this.supportedSubsystemTypes\n\t\t\t\t\t.map((t) => `\\n\u00B7 ${getEnumMemberName(SubsystemType, t)}`)\n\t\t\t\t\t.join(\"\"),\n\t\t\t},\n\t\t};\n\t}\n}\n\n@CCCommand(BarrierOperatorCommand.SignalingCapabilitiesGet)\n@expectedCCResponse(BarrierOperatorCCSignalingCapabilitiesReport)\nexport class BarrierOperatorCCSignalingCapabilitiesGet\n\textends BarrierOperatorCC\n{}\n\n// @publicAPI\nexport interface BarrierOperatorCCEventSignalingSetOptions {\n\tsubsystemType: SubsystemType;\n\tsubsystemState: SubsystemState;\n}\n\n@CCCommand(BarrierOperatorCommand.EventSignalingSet)\n@useSupervision()\nexport class BarrierOperatorCCEventSignalingSet extends BarrierOperatorCC {\n\tpublic constructor(\n\t\toptions: WithAddress<BarrierOperatorCCEventSignalingSetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.subsystemType = options.subsystemType;\n\t\tthis.subsystemState = options.subsystemState;\n\t}\n\n\tpublic static from(\n\t\t_raw: CCRaw,\n\t\t_ctx: CCParsingContext,\n\t): BarrierOperatorCCEventSignalingSet {\n\t\t// TODO: Deserialize payload\n\t\tthrow new ZWaveError(\n\t\t\t`${this.name}: deserialization not implemented`,\n\t\t\tZWaveErrorCodes.Deserialization_NotImplemented,\n\t\t);\n\n\t\t// return new BarrierOperatorCCEventSignalingSet({\n\t\t// \tnodeId: ctx.sourceNodeId,\n\t\t// });\n\t}\n\n\tpublic subsystemType: SubsystemType;\n\tpublic subsystemState: SubsystemState;\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = Bytes.from([this.subsystemType, this.subsystemState]);\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"subsystem type\": getEnumMemberName(\n\t\t\t\t\tSubsystemType,\n\t\t\t\t\tthis.subsystemType,\n\t\t\t\t),\n\t\t\t\t\"subsystem state\": getEnumMemberName(\n\t\t\t\t\tSubsystemState,\n\t\t\t\t\tthis.subsystemState,\n\t\t\t\t),\n\t\t\t},\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport interface BarrierOperatorCCEventSignalingReportOptions {\n\tsubsystemType: SubsystemType;\n\tsubsystemState: SubsystemState;\n}\n\n@CCCommand(BarrierOperatorCommand.EventSignalingReport)\nexport class BarrierOperatorCCEventSignalingReport extends BarrierOperatorCC {\n\tpublic constructor(\n\t\toptions: WithAddress<BarrierOperatorCCEventSignalingReportOptions>,\n\t) {\n\t\tsuper(options);\n\n\t\t// TODO: Check implementation:\n\t\tthis.subsystemType = options.subsystemType;\n\t\tthis.subsystemState = options.subsystemState;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): BarrierOperatorCCEventSignalingReport {\n\t\tvalidatePayload(raw.payload.length >= 2);\n\t\tconst subsystemType: SubsystemType = raw.payload[0];\n\t\tconst subsystemState: SubsystemState = raw.payload[1];\n\n\t\treturn new BarrierOperatorCCEventSignalingReport({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tsubsystemType,\n\t\t\tsubsystemState,\n\t\t});\n\t}\n\n\tpublic persistValues(ctx: PersistValuesContext): boolean {\n\t\tif (!super.persistValues(ctx)) return false;\n\n\t\tconst signalingStateValue = BarrierOperatorCCValues.signalingState(\n\t\t\tthis.subsystemType,\n\t\t);\n\n\t\tthis.ensureMetadata(ctx, signalingStateValue);\n\t\tthis.setValue(ctx, signalingStateValue, this.subsystemState);\n\n\t\treturn true;\n\t}\n\n\tpublic readonly subsystemType: SubsystemType;\n\tpublic readonly subsystemState: SubsystemState;\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"subsystem type\": getEnumMemberName(\n\t\t\t\t\tSubsystemType,\n\t\t\t\t\tthis.subsystemType,\n\t\t\t\t),\n\t\t\t\t\"subsystem state\": getEnumMemberName(\n\t\t\t\t\tSubsystemState,\n\t\t\t\t\tthis.subsystemState,\n\t\t\t\t),\n\t\t\t},\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport interface BarrierOperatorCCEventSignalingGetOptions {\n\tsubsystemType: SubsystemType;\n}\n\n@CCCommand(BarrierOperatorCommand.EventSignalingGet)\n@expectedCCResponse(BarrierOperatorCCEventSignalingReport)\nexport class BarrierOperatorCCEventSignalingGet extends BarrierOperatorCC {\n\tpublic constructor(\n\t\toptions: WithAddress<BarrierOperatorCCEventSignalingGetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.subsystemType = options.subsystemType;\n\t}\n\n\tpublic static from(\n\t\t_raw: CCRaw,\n\t\t_ctx: CCParsingContext,\n\t): BarrierOperatorCCEventSignalingGet {\n\t\t// TODO: Deserialize payload\n\t\tthrow new ZWaveError(\n\t\t\t`${this.name}: deserialization not implemented`,\n\t\t\tZWaveErrorCodes.Deserialization_NotImplemented,\n\t\t);\n\n\t\t// return new BarrierOperatorCCEventSignalingGet({\n\t\t// \tnodeId: ctx.sourceNodeId,\n\t\t// });\n\t}\n\n\tpublic subsystemType: SubsystemType;\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = Bytes.from([this.subsystemType]);\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"subsystem type\": getEnumMemberName(\n\t\t\t\t\tSubsystemType,\n\t\t\t\t\tthis.subsystemType,\n\t\t\t\t),\n\t\t\t},\n\t\t};\n\t}\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kBAgBO;AAMP,IAAAA,eAAsB;AACtB,IAAAA,eAKO;AAEP,iBAYO;AACP,0BAMO;AACP,oCASO;AACP,oBAAkB;AAClB,mBAKO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAAM,0BAA0B,OAAO,OAAO;EACpD,GA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,MAAM,WAAW,GAAG;MACvB,SAAS;QACR,sBAAkB,gCACjB,4BACA,KAAK,aAAa;QAEnB,uBAAmB,gCAClB,6BACA,KAAK,cAAc;;;EAIvB;;AAxDY,wCAAqC,0CAAA,WAAA;MADjD,yCAAU,oCAAuB,oBAAoB;GACzC,qCAAqC;AAkE3C,IAAM,qCAAN,MAAMC,4CAA2C,kBAAiB;EACxE,YACC,SAA+D;AAE/D,UAAM,OAAO;AACb,SAAK,gBAAgB,QAAQ;EAC9B;EAEO,OAAO,KACb,MACA,MAAsB;AAGtB,UAAM,IAAI,uBACT,GAAG,KAAK,IAAI,qCACZ,4BAAgB,8BAA8B;EAMhD;EAEO;EAEA,UAAU,KAAsB;AACtC,SAAK,UAAU,mBAAM,KAAK,CAAC,KAAK,aAAa,CAAC;AAC9C,WAAO,MAAM,UAAU,GAAG;EAC3B;EAEO,WAAW,KAAgB;AACjC,WAAO;MACN,GAAG,MAAM,WAAW,GAAG;MACvB,SAAS;QACR,sBAAkB,gCACjB,4BACA,KAAK,aAAa;;;EAItB;;AAxCY,qCAAkC,WAAA;MAF9C,yCAAU,oCAAuB,iBAAiB;MAClD,kDAAmB,qCAAqC;GAC5C,kCAAkC;",
|
|
6
|
+
"names": ["import_safe", "BarrierOperatorCCAPI", "BarrierOperatorCC", "BarrierOperatorCCSet", "BarrierOperatorCCReport", "BarrierOperatorCCGet", "BarrierOperatorCCSignalingCapabilitiesReport", "BarrierOperatorCCSignalingCapabilitiesGet", "BarrierOperatorCCEventSignalingSet", "BarrierOperatorCCEventSignalingReport", "BarrierOperatorCCEventSignalingGet"]
|
|
7
|
+
}
|